diff options
Diffstat (limited to 'src/game/PetAI.cpp')
-rw-r--r-- | src/game/PetAI.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/PetAI.cpp b/src/game/PetAI.cpp index 88327978de9..ae4441d7c6d 100644 --- a/src/game/PetAI.cpp +++ b/src/game/PetAI.cpp @@ -131,7 +131,7 @@ void PetAI::UpdateAI(const uint32 diff) bool inCombat = me->getVictim(); //Autocast - for (uint8 i = 0; i < m_creature->GetPetAutoSpellSize(); i++) + for (uint8 i = 0; i < m_creature->GetPetAutoSpellSize(); ++i) { uint32 spellID = m_creature->GetPetAutoSpellOnPos(i); if (!spellID) @@ -163,7 +163,7 @@ void PetAI::UpdateAI(const uint32 diff) else { bool spellUsed = false; - for(std::set<uint64>::iterator tar = m_AllySet.begin(); tar != m_AllySet.end(); ++tar) + for(std::set<uint64>::const_iterator tar = m_AllySet.begin(); tar != m_AllySet.end(); ++tar) { Unit* Target = ObjectAccessor::GetUnit(*m_creature,*tar); |