mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-18 04:23:20 +01:00
Refactor to avoid unnecessary copies (#13736)
* Refactor to avoid unnecessary copies * Fix dangling references
This commit is contained in:
@@ -399,7 +399,7 @@ private:
|
||||
void AddItems(const std::vector<ObjectRepositoryItem>& items)
|
||||
{
|
||||
size_t numConflicts = 0;
|
||||
for (auto item : items)
|
||||
for (const auto& item : items)
|
||||
{
|
||||
if (!AddItem(item))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user