mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-16 11:33:03 +01:00
Refactor to use push_back more efficient (#13726)
This commit is contained in:
@@ -420,7 +420,7 @@ private:
|
||||
size_t index = _items.size();
|
||||
auto copy = item;
|
||||
copy.Id = index;
|
||||
_items.push_back(copy);
|
||||
_items.push_back(std::move(copy));
|
||||
if (!item.Identifier.empty())
|
||||
{
|
||||
_newItemMap[item.Identifier] = index;
|
||||
|
||||
Reference in New Issue
Block a user