mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 03:15:41 +00:00
fix(Core/ObjectGuid): prevent creating copies when looping objects (#6852)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user