From 5c2ae96e3878d18c2e1d3ef859c258a9ef86cffa Mon Sep 17 00:00:00 2001 From: XTZGZoReX Date: Sun, 9 Aug 2009 10:59:05 +0400 Subject: [PATCH] [8338] Use expected constant name instead explicit value. Signed-off-by: VladimirMangos --- src/game/Unit.cpp | 2 +- src/game/Unit.h | 2 +- src/shared/revision_nr.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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__