diff options
author | ccrs <ccrs@users.noreply.github.com> | 2019-07-19 15:52:35 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2021-12-16 22:08:01 +0100 |
commit | f1ef2f73a4da4cf466728903207e9d623800d70e (patch) | |
tree | 4fc6ad0381d0962ad3358d197ad098943cb3d3e6 | |
parent | 27991ff0ba9b673beecf39a72dc0b24f539360d1 (diff) |
Core/SmartAI: allow more Unit::ResumeMovement calls on JustReachedHome()
Since ResumeMovement also works on other MOTION_SLOT_DEFAULT generators (like RandomMG)
(cherry picked from commit c8cb866db088837cd7c771059e66d98a46de4fdd)
-rw-r--r-- | src/server/game/AI/SmartScripts/SmartAI.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartAI.cpp b/src/server/game/AI/SmartScripts/SmartAI.cpp index 1ae2794c2f2..dcc6bf9d9c7 100644 --- a/src/server/game/AI/SmartScripts/SmartAI.cpp +++ b/src/server/game/AI/SmartScripts/SmartAI.cpp @@ -550,8 +550,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 |