diff options
| author | megamage <none@none> | 2009-03-21 14:55:10 -0600 |
|---|---|---|
| committer | megamage <none@none> | 2009-03-21 14:55:10 -0600 |
| commit | 7de6113d908ccec0c8f1585a346bb16c5e7920f7 (patch) | |
| tree | 38695302bf2f26c917fb50e02365d0c2ad49c46b /src/game/Pet.cpp | |
| parent | 42d5b79eead2608c00c1068a5eec98798333fc42 (diff) | |
[7509] Use defines instead explcit value for talent rank cound (in general and for pets) Author: VladimirMangos
--HG--
branch : trunk
Diffstat (limited to 'src/game/Pet.cpp')
| -rw-r--r-- | src/game/Pet.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Pet.cpp b/src/game/Pet.cpp index 5200ebf1d3d..02f09991650 100644 --- a/src/game/Pet.cpp +++ b/src/game/Pet.cpp @@ -1267,7 +1267,7 @@ bool Pet::addSpell(uint32 spell_id, uint16 active, PetSpellState state, PetSpell { if(TalentEntry const *talentInfo = sTalentStore.LookupEntry( talentPos->talent_id )) { - for(int i=0; i <5; ++i) + for(int i=0; i < MAX_TALENT_RANK; ++i) { // skip learning spell and no rank spell case uint32 rankSpellId = talentInfo->RankID[i]; @@ -1544,7 +1544,7 @@ bool Pet::resetTalents(bool no_cost) if(!((1 << pet_family->petTalentType) & talentTabInfo->petTalentMask)) continue; - for (int j = 0; j < 5; j++) + for (int j = 0; j < MAX_TALENT_RANK; j++) { for(PetSpellMap::iterator itr = m_spells.begin(); itr != m_spells.end();) { |
