Core/Player: 72fc79a followup

safer approach, please report any returning issue
This commit is contained in:
ccrs
2019-06-24 14:32:59 +02:00
parent 9817bb55a3
commit 337de2b61e

View File

@@ -1665,8 +1665,7 @@ bool Player::TeleportTo(uint32 mapid, float x, float y, float z, float orientati
// reset movement flags at teleport, because player will continue move with these flags after teleport
SetUnitMovementFlags(GetUnitMovementFlags() & MOVEMENTFLAG_MASK_HAS_PLAYER_STATUS_OPCODE);
DisableSpline();
if (!IsInFlight())
GetMotionMaster()->Clear();
GetMotionMaster()->Remove(EFFECT_MOTION_TYPE);
if (Transport* transport = GetTransport())
{