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 c8cb866db0)
This commit is contained in:
ccrs
2019-07-19 15:52:35 +02:00
committed by Shauren
parent 27991ff0ba
commit f1ef2f73a4

View File

@@ -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