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/UnitAI.cpp | |
parent | 9a8f10fa3067ca65c2e69ac610d8950c3b384125 (diff) |
Some Creature* casts moved to new ToCreature.
Added const Creature* ToCreature()
--HG--
branch : trunk
Diffstat (limited to 'src/game/UnitAI.cpp')
-rw-r--r-- | src/game/UnitAI.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/UnitAI.cpp b/src/game/UnitAI.cpp index 7d80209d3ab..6a3f7b1157a 100644 --- a/src/game/UnitAI.cpp +++ b/src/game/UnitAI.cpp @@ -293,7 +293,7 @@ void PlayerAI::OnCharmed(bool apply) { me->IsAIEnabled = apply; } void SimpleCharmedAI::UpdateAI(const uint32 /*diff*/) { - Creature *charmer = (Creature*)me->GetCharmer(); + Creature *charmer = me->GetCharmer()->ToCreature(); //kill self if charm aura has infinite duration if(charmer->IsInEvadeMode()) |