diff options
author | ccrs <ccrs@users.noreply.github.com> | 2019-07-19 15:52:35 +0200 |
---|---|---|
committer | ccrs <ccrs@users.noreply.github.com> | 2019-07-19 15:52:35 +0200 |
commit | c8cb866db088837cd7c771059e66d98a46de4fdd (patch) | |
tree | 3ffcfd666407e43c303bc184130735a4c3089abe /src | |
parent | bca46aa7506daba1a9bd765be405915288605180 (diff) |
Core/SmartAI: allow more Unit::ResumeMovement calls on JustReachedHome()
Since ResumeMovement also works on other MOTION_SLOT_DEFAULT generators (like RandomMG)
Diffstat (limited to 'src')
-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 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 |