* More updating of iterator data types in loops, and fix a crash (sorry)

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2009-06-18 21:16:25 +02:00
parent 38261d1967
commit 3c3a4a303d
2 changed files with 64 additions and 64 deletions
@@ -159,11 +159,11 @@ struct TRINITY_DLL_DECL boss_kelidan_the_breakerAI : public ScriptedAI
{
SummonChannelers();
if(!channeler1) return NULL;
int i;
uint8 i;
for(i=0; i<5; ++i)
{
Creature *channeler = Unit::GetCreature(*m_creature, Channelers[i]);
if(channeler && channeler->GetGUID()==channeler1->GetGUID())
if(channeler && channeler->GetGUID() == channeler1->GetGUID())
break;
}
return Channelers[(i+2)%5];