diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 658381ef2..2194bde54 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -10540,7 +10540,7 @@ CharmInfo* Unit::InitCharmInfo(Unit *charm) CharmInfo::CharmInfo(Unit* unit) : 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); } diff --git a/src/game/Unit.h b/src/game/Unit.h index 1bea36611..608d60cf9 100644 --- a/src/game/Unit.h +++ b/src/game/Unit.h @@ -829,7 +829,7 @@ struct CharmInfo Unit* m_unit; UnitActionBarEntry PetActionBar[MAX_UNIT_ACTION_BAR_INDEX]; - CharmSpellEntry m_charmspells[4]; + CharmSpellEntry m_charmspells[CREATURE_MAX_SPELLS]; CommandStates m_CommandState; ReactStates m_reactState; uint32 m_petnumber; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 0d4ee0632..31a74868a 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "8337" + #define REVISION_NR "8338" #endif // __REVISION_NR_H__