Core/Objects: Properly choose between "Destroyed" or "OutOfRange" during visibility update
Port From (https://github.com/TrinityCore/TrinityCore/commit/5a82a0381d704e4b4b9976daf04d541d1130e541)
This commit is contained in:
@@ -286,6 +286,7 @@ namespace Game.Maps
|
||||
if (obj.IsTypeId(TypeId.Player))
|
||||
continue;
|
||||
|
||||
obj.SetDestroyedObject(true);
|
||||
obj.CleanupsBeforeDelete();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user