he said make it a reference too, not just const

This commit is contained in:
Aaron Kimbre 2023-07-30 23:13:43 -05:00
parent feee4e967f
commit 87d4485505

View File

@ -1294,7 +1294,7 @@ void GameMessages::SendVendorStatusUpdate(Entity* entity, const SystemAddress& s
bitStream.Write(bUpdateOnly);
bitStream.Write<uint32_t>(vendorItems.size());
for (const auto item : vendorItems) {
for (const auto& item : vendorItems) {
bitStream.Write(item.lot);
bitStream.Write(item.sortPriority);
}