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:
@@ -163,11 +163,8 @@ namespace Game.Entities
|
|||||||
public void Remove()
|
public void Remove()
|
||||||
{
|
{
|
||||||
if (IsInWorld)
|
if (IsInWorld)
|
||||||
{
|
|
||||||
RemoveFromWorld();
|
|
||||||
AddObjectToRemoveList();
|
AddObjectToRemoveList();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
int GetDuration()
|
int GetDuration()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ namespace Game.Entities
|
|||||||
MapId = 0;
|
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; }
|
public List<ObjectGuid> GetOutOfRangeGUIDs() { return outOfRangeGUIDs; }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user