diff options
author | Rat <none@none> | 2010-04-14 23:07:41 +0200 |
---|---|---|
committer | Rat <none@none> | 2010-04-14 23:07:41 +0200 |
commit | 6bcb297de4d5231373a3e2bf2b40e527b91cdf46 (patch) | |
tree | a5379b14ceb2ac9e7273143b334bfc693e2ef042 /src/game/CreatureAI.cpp | |
parent | cc262e1cde544eb7cf643df79fa00c9f34af4785 (diff) |
*code cleanup
*totally destroyed m_creature, use "me" for future coding
--HG--
branch : trunk
Diffstat (limited to 'src/game/CreatureAI.cpp')
-rw-r--r-- | src/game/CreatureAI.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/CreatureAI.cpp b/src/game/CreatureAI.cpp index bdd78f0fa63..628b156fcf1 100644 --- a/src/game/CreatureAI.cpp +++ b/src/game/CreatureAI.cpp @@ -152,7 +152,7 @@ void CreatureAI::EnterEvadeMode() if (Unit *owner = me->GetCharmerOrOwner()) { me->GetMotionMaster()->Clear(false); - me->GetMotionMaster()->MoveFollow(owner, PET_FOLLOW_DIST, m_creature->GetFollowAngle(), MOTION_SLOT_ACTIVE); + me->GetMotionMaster()->MoveFollow(owner, PET_FOLLOW_DIST, me->GetFollowAngle(), MOTION_SLOT_ACTIVE); } else me->GetMotionMaster()->MoveTargetedHome(); @@ -166,6 +166,6 @@ void CreatureAI::EnterEvadeMode() /*void CreatureAI::AttackedBy(Unit* attacker) { - if (!m_creature->getVictim()) + if (!me->getVictim()) AttackStart(attacker); }*/ |