aboutsummaryrefslogtreecommitdiff
path: root/src/game/PetAI.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-04-29 00:26:07 -0500
committermegamage <none@none>2009-04-29 00:26:07 -0500
commitde11b9e901d1d1caa0634fad541f08f11c5781af (patch)
treee35503d08ef545e668b8d854da41e0ea6aba3b3b /src/game/PetAI.cpp
parent9dd4b8c98599b0bdccea7b9acb61cb4e7a35da8f (diff)
[7730] Some optimizantion and code style. Author: zhenya
--HG-- branch : trunk
Diffstat (limited to 'src/game/PetAI.cpp')
-rw-r--r--src/game/PetAI.cpp4
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);