Some Creature* casts moved to new ToCreature.

Added const Creature* ToCreature()

--HG--
branch : trunk
This commit is contained in:
raczman committed 2010-03-07 18:30:53 +01:00
1 parent 9a8f10fa30
commit 07f3b91426
29 files changed
+280 -279

No files matched your search

+1 -1
View File
@@ -420,7 +420,7 @@ void TimedFleeingMovementGenerator::Finalize(Unit &owner)
if (owner.isAlive())
{
owner.AttackStop();
((Creature*)&owner)->AI()->AttackStart(victim);
owner.ToCreature()->AI()->AttackStart(victim);
}
}
}