From 9180bcd404ff0a89144bbe834a2efe189bd0eb86 Mon Sep 17 00:00:00 2001 From: treeston Date: Fri, 9 Sep 2016 15:03:56 +0200 Subject: Derp. Build fix. --- src/server/game/AI/SmartScripts/SmartAI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/server/game/AI/SmartScripts/SmartAI.cpp b/src/server/game/AI/SmartScripts/SmartAI.cpp index 3ce27ae0105..b57717fa53d 100644 --- a/src/server/game/AI/SmartScripts/SmartAI.cpp +++ b/src/server/game/AI/SmartScripts/SmartAI.cpp @@ -457,7 +457,7 @@ void SmartAI::EnterEvadeMode(EvadeReason /*why*/) } else if (Unit* owner = me->GetCharmerOrOwner()) { - me->GetMotionMaster()->MoveFollow(target, PET_FOLLOW_DIST, PET_FOLLOW_ANGLE); + me->GetMotionMaster()->MoveFollow(owner, PET_FOLLOW_DIST, PET_FOLLOW_ANGLE); me->ClearUnitState(UNIT_STATE_EVADE); } else -- cgit v1.2.3