From c8cb866db088837cd7c771059e66d98a46de4fdd Mon Sep 17 00:00:00 2001 From: ccrs Date: Fri, 19 Jul 2019 15:52:35 +0200 Subject: Core/SmartAI: allow more Unit::ResumeMovement calls on JustReachedHome() Since ResumeMovement also works on other MOTION_SLOT_DEFAULT generators (like RandomMG) --- src/server/game/AI/SmartScripts/SmartAI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/server/game/AI/SmartScripts/SmartAI.cpp b/src/server/game/AI/SmartScripts/SmartAI.cpp index 2856a55a245..521ebdd8f62 100644 --- a/src/server/game/AI/SmartScripts/SmartAI.cpp +++ b/src/server/game/AI/SmartScripts/SmartAI.cpp @@ -548,8 +548,8 @@ void SmartAI::JustReachedHome() if (me->GetWaypointPath()) me->GetMotionMaster()->MovePath(me->GetWaypointPath(), true); } - else - me->ResumeMovement(); + + me->ResumeMovement(); } else if (formation->IsFormed()) me->GetMotionMaster()->MoveIdle(); // wait the order of leader -- cgit v1.2.3