Movement/TaxiPath: Properly clean up list of taxi destinations upon arrival at final node.

Port From (https://github.com/TrinityCore/TrinityCore/commit/390001fa624ef996d2ae5331e201f9e2d640211b)
This commit is contained in:
hondacrx
2021-11-03 16:21:01 -04:00
parent c78d7fab3c
commit ba26dd0a68
2 changed files with 3 additions and 0 deletions
@@ -173,6 +173,8 @@ namespace Game.Entities
if (m_TaxiDestinations.Empty())
return "";
Cypher.Assert(m_TaxiDestinations.Count >= 2);
StringBuilder ss = new();
ss.Append($"{m_flightMasterFactionId} ");
@@ -123,6 +123,7 @@ namespace Game.Movement
if (!active)
return;
owner.m_taxi.ClearTaxiDestinations();
owner.Dismount();
owner.RemoveUnitFlag(UnitFlags.RemoveClientControl | UnitFlags.TaxiFlight);