Core/Misc: Remove Unit::Get* wrappers for ObjectAccessor::Get*

This commit is contained in:
jackpoz
2014-05-20 21:21:33 +02:00
parent d36ecbf4a3
commit 1083dbb993
148 changed files with 728 additions and 746 deletions

View File

@@ -437,7 +437,7 @@ void SmartAI::EnterEvadeMode()
}
else if (mFollowGuid)
{
if (Unit* target = me->GetUnit(*me, mFollowGuid))
if (Unit* target = ObjectAccessor::GetUnit(*me, mFollowGuid))
me->GetMotionMaster()->MoveFollow(target, mFollowDist, mFollowAngle);
// evade is not cleared in MoveFollow, so we can't keep it