Core/Movement: backported a movemenet slot check to prevent PauseMovement from stopping movements that it's not suposed to stop

This commit is contained in:
Ovahlord committed 2020-01-04 12:17:22 +01:00
1 parent 6ad66f9cfc
commit 9f39c218db
3 files changed
+13 -1

No files matched your search

+1 -1
View File
@@ -11006,7 +11006,7 @@ void Unit::PauseMovement(uint32 timer/* = 0*/, uint8 slot/* = 0*/, bool forced/*
if (MovementGenerator* movementGenerator = GetMotionMaster()->GetMotionSlot(MovementSlot(slot)))
movementGenerator->Pause(timer);
if (forced)
if (forced && GetMotionMaster()->GetCurrentSlot() == MovementSlot(slot))
StopMoving();
}