Revert nullptr crash fix as it causes another crash
This commit is contained in:
1 parent
afd8675a0a
commit
d707a474df
1 file changed
+3
-3
@@ -10139,6 +10139,9 @@ void Unit::CleanupBeforeRemoveFromMap(bool finalCleanup)
|
||||
// This needs to be before RemoveFromWorld to make GetCaster() return a valid pointer on aura removal
|
||||
InterruptNonMeleeSpells(true);
|
||||
|
||||
if (IsInWorld())
|
||||
RemoveFromWorld();
|
||||
|
||||
ASSERT(GetGUID());
|
||||
|
||||
// A unit may be in removelist and not in world, but it is still in grid
|
||||
@@ -10154,9 +10157,6 @@ void Unit::CleanupBeforeRemoveFromMap(bool finalCleanup)
|
||||
ClearComboPointHolders();
|
||||
DeleteThreatList();
|
||||
getHostileRefManager().deleteReferences();
|
||||
|
||||
if (IsInWorld())
|
||||
RemoveFromWorld();
|
||||
}
|
||||
|
||||
void Unit::CleanupsBeforeDelete(bool finalCleanup)
|
||||
|
||||
Reference in new issue
Block a user