Core/Player: 72fc79a followup

safer approach, please report any returning issue

(cherry picked from commit 337de2b61e)
This commit is contained in:
ccrs
2019-06-24 14:32:59 +02:00
committed by Shauren
parent a4da12119e
commit 4747debed1

View File

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