mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-25 15:54:31 +01:00
Prevent making unnecessary copies in certain tile loops (#9549)
This commit is contained in:
committed by
Michael Steenbeek
parent
57347d5710
commit
cfd863ef12
@@ -680,7 +680,7 @@ void track_design_mirror(rct_track_td6* td6)
|
||||
|
||||
static void track_design_add_selection_tile(int16_t x, int16_t y)
|
||||
{
|
||||
for (const auto tile : gMapSelectionTiles)
|
||||
for (const auto& tile : gMapSelectionTiles)
|
||||
{
|
||||
if (tile.x == x && tile.y == y)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user