Core/Player: Remove all Motion Masters when teleporting

Fix #22859

(cherry picked from commit 72fc79a9e6)
This commit is contained in:
jackpoz
2019-06-09 16:25:00 +02:00
committed by Shauren
parent d01906b76c
commit ab3edebb5d

View File

@@ -1369,6 +1369,7 @@ bool Player::TeleportTo(uint32 mapid, float x, float y, float z, float orientati
SetUnitMovementFlags(GetUnitMovementFlags() & MOVEMENTFLAG_MASK_HAS_PLAYER_STATUS_OPCODE);
m_movementInfo.ResetJump();
DisableSpline();
GetMotionMaster()->Clear();
if (Transport* transport = GetTransport())
{