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-
2017-03-19 18:19:14 -03:00
parent d209aaa00f
commit b53d0530cd
-1
View File
@@ -10665,7 +10665,6 @@ void Unit::CleanupBeforeRemoveFromMap(bool finalCleanup)
ClearComboPointHolders();
DeleteThreatList();
getHostileRefManager().deleteReferences();
GetMotionMaster()->Clear(false); // remove different non-standard movement generators.
}
void Unit::CleanupsBeforeDelete(bool finalCleanup)