Core/Player: Fix teleporting FlyPath dismounting the player

Port From (https://github.com/TrinityCore/TrinityCore/commit/2d7ec53330bda17704cf46a88785f40b95ce3bfb)
This commit is contained in:
hondacrx
2021-12-17 19:37:23 -05:00
parent 8f24c82944
commit 85f24d047e
+2 -1
View File
@@ -1661,7 +1661,8 @@ namespace Game.Entities
SetUnitMovementFlags(GetUnitMovementFlags() & MovementFlag.MaskHasPlayerStatusOpcode);
m_movementInfo.ResetJump();
DisableSpline();
GetMotionMaster().Clear();
if (!IsInFlight())
GetMotionMaster().Clear();
Transport transport = GetTransport();
if (transport)