aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortreeston <treeston.mmoc@gmail.com>2016-09-09 15:03:56 +0200
committertreeston <treeston.mmoc@gmail.com>2016-09-09 15:03:56 +0200
commit9180bcd404ff0a89144bbe834a2efe189bd0eb86 (patch)
treeed77e9a7c45d5e305fee1cf4efdb6b30a90e7db7 /src
parente69a483aa942c1c6c4bd9b5fa47139f89643b8d5 (diff)
Derp. Build fix.
Diffstat (limited to 'src')
-rw-r--r--src/server/game/AI/SmartScripts/SmartAI.cpp2
1 files changed, 1 insertions, 1 deletions
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