Core/Player: Fix teleporting FlyPath dismounting the player

Issue added in 72fc79a9e6

(cherry picked from commit 4019cae375)
This commit is contained in:
jackpoz
2019-06-15 17:45:33 +02:00
committed by Shauren
parent ef4d4e3d98
commit 2d7ec53330

View File

@@ -1369,7 +1369,8 @@ 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 (!IsInFlight())
GetMotionMaster()->Clear();
if (Transport* transport = GetTransport())
{