mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[8338] Use expected constant name instead explicit value.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
d7b091793c
commit
5c2ae96e38
3 changed files with 3 additions and 3 deletions
|
|
@ -10540,7 +10540,7 @@ CharmInfo* Unit::InitCharmInfo(Unit *charm)
|
||||||
CharmInfo::CharmInfo(Unit* unit)
|
CharmInfo::CharmInfo(Unit* unit)
|
||||||
: m_unit(unit), m_CommandState(COMMAND_FOLLOW), m_reactState(REACT_PASSIVE), m_petnumber(0)
|
: m_unit(unit), m_CommandState(COMMAND_FOLLOW), m_reactState(REACT_PASSIVE), m_petnumber(0)
|
||||||
{
|
{
|
||||||
for(int i =0; i<4; ++i)
|
for(int i = 0; i < CREATURE_MAX_SPELLS; ++i)
|
||||||
m_charmspells[i].SetActionAndType(0,ACT_DISABLED);
|
m_charmspells[i].SetActionAndType(0,ACT_DISABLED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -829,7 +829,7 @@ struct CharmInfo
|
||||||
|
|
||||||
Unit* m_unit;
|
Unit* m_unit;
|
||||||
UnitActionBarEntry PetActionBar[MAX_UNIT_ACTION_BAR_INDEX];
|
UnitActionBarEntry PetActionBar[MAX_UNIT_ACTION_BAR_INDEX];
|
||||||
CharmSpellEntry m_charmspells[4];
|
CharmSpellEntry m_charmspells[CREATURE_MAX_SPELLS];
|
||||||
CommandStates m_CommandState;
|
CommandStates m_CommandState;
|
||||||
ReactStates m_reactState;
|
ReactStates m_reactState;
|
||||||
uint32 m_petnumber;
|
uint32 m_petnumber;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8337"
|
#define REVISION_NR "8338"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue