Core/Entities: don't finalize movesplines before deleting.

- The whole MotionMaster will be destroyed along with the unit, freeing the allocated memory.

Closes #19324
This commit is contained in:
ariel- authored and Aokromes committed 2017-03-20 16:53:54 +01:00
1 parent 73ce0bdade
commit 35e9c27c4a
1 file changed
-1
-1
View File
@@ -12250,7 +12250,6 @@ void Unit::CleanupBeforeRemoveFromMap(bool finalCleanup)
ClearComboPointHolders();
DeleteThreatList();
getHostileRefManager().deleteReferences();
GetMotionMaster()->Clear(false); // remove different non-standard movement generators.
}
void Unit::CleanupsBeforeDelete(bool finalCleanup)