fix(Core/Crash): Evade after cleaning threat references. (#8160)

This commit is contained in:
UltraNix
2021-10-06 06:26:03 +02:00
committed by GitHub
parent 702573038e
commit 0d411ec2c3
2 changed files with 9 additions and 2 deletions

View File

@@ -14812,7 +14812,7 @@ void Unit::CleanupBeforeRemoveFromMap(bool finalCleanup)
CombatStop();
ClearComboPointHolders();
DeleteThreatList();
getHostileRefMgr().deleteReferences(true);
getHostileRefMgr().deleteReferences();
GetMotionMaster()->Clear(false); // remove different non-standard movement generators.
}