Cleanup before deleting objects when unloading grid. Fix #3922.
This commit is contained in:
1 parent
360c9dd635
commit
9e3b4fe409
3 files changed
+7
-8
No files matched your search
@@ -1273,6 +1273,8 @@ void WorldObject::setActive(bool on)
|
||||
|
||||
void WorldObject::CleanupsBeforeDelete(bool /*finalCleanup*/)
|
||||
{
|
||||
if (IsInWorld())
|
||||
RemoveFromWorld();
|
||||
}
|
||||
|
||||
void WorldObject::_Create(uint32 guidlow, HighGuid guidhigh, uint32 phaseMask)
|
||||
|
||||
Reference in new issue
Block a user