fix(Core/ObjectGuid): prevent creating copies when looping objects (#6852)
This commit is contained in:
parent
2fcafa5f39
commit
4103fca5a4
40 changed files with 69 additions and 69 deletions
|
|
@ -104,7 +104,7 @@ bool UpdateData::BuildPacket(WorldPacket* packet)
|
|||
buf << (uint8) UPDATETYPE_OUT_OF_RANGE_OBJECTS;
|
||||
buf << (uint32) m_outOfRangeGUIDs.size();
|
||||
|
||||
for (ObjectGuid const guid : m_outOfRangeGUIDs)
|
||||
for (ObjectGuid const& guid : m_outOfRangeGUIDs)
|
||||
{
|
||||
buf << guid.WriteAsPacked();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue