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:
1 parent
73ce0bdade
commit
35e9c27c4a
1 file changed
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user