Core/Objects: Don't consider SMSG_UPDATE_OBJECT packets that contain only destroyed objects as empty

Port From (https://github.com/TrinityCore/TrinityCore/commit/faf12a888394f220fa057526b56bd456f3790f4f)
This commit is contained in:
hondacrx
2022-03-09 14:53:21 -05:00
parent ffd0f4280b
commit bdc6cdfcc1
2 changed files with 1 additions and 4 deletions
-3
View File
@@ -163,10 +163,7 @@ namespace Game.Entities
public void Remove()
{
if (IsInWorld)
{
RemoveFromWorld();
AddObjectToRemoveList();
}
}
int GetDuration()
@@ -93,7 +93,7 @@ namespace Game.Entities
MapId = 0;
}
public bool HasData() { return BlockCount > 0 || outOfRangeGUIDs.Count != 0; }
public bool HasData() { return BlockCount > 0 || !outOfRangeGUIDs.Empty() || !destroyGUIDs.Empty(); }
public List<ObjectGuid> GetOutOfRangeGUIDs() { return outOfRangeGUIDs; }