diff options
author | raczman <none@none> | 2010-03-07 18:30:53 +0100 |
---|---|---|
committer | raczman <none@none> | 2010-03-07 18:30:53 +0100 |
commit | 07f3b914260374792fe8b40d590cb24067c87125 (patch) | |
tree | 7c1604160d6aeda8d8b10cf47effa6f075cfa50b /src/game/PointMovementGenerator.cpp | |
parent | 9a8f10fa3067ca65c2e69ac610d8950c3b384125 (diff) |
Some Creature* casts moved to new ToCreature.
Added const Creature* ToCreature()
--HG--
branch : trunk
Diffstat (limited to 'src/game/PointMovementGenerator.cpp')
-rw-r--r-- | src/game/PointMovementGenerator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/PointMovementGenerator.cpp b/src/game/PointMovementGenerator.cpp index 17b50b71d58..1cb058240f3 100644 --- a/src/game/PointMovementGenerator.cpp +++ b/src/game/PointMovementGenerator.cpp @@ -98,8 +98,8 @@ template void PointMovementGenerator<Creature>::Finalize(Creature&); void AssistanceMovementGenerator::Finalize(Unit &unit) { - ((Creature*)&unit)->SetNoCallAssistance(false); - ((Creature*)&unit)->CallAssistance(); + unit.ToCreature()->SetNoCallAssistance(false); + unit.ToCreature()->CallAssistance(); if (unit.isAlive()) unit.GetMotionMaster()->MoveSeekAssistanceDistract(sWorld.getConfig(CONFIG_CREATURE_FAMILY_ASSISTANCE_DELAY)); } |