1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 12:03:07 +01:00

Use reference instead of copy.

This commit is contained in:
Matt
2018-08-20 21:12:06 +02:00
parent a89b352fb2
commit dcc4827833

View File

@@ -830,7 +830,7 @@ public:
{
// The number of riders might have overflown or underflown. Re-calculate the value.
uint16_t numRiders = 0;
for (const rct_sprite sprite : _s6.sprites)
for (const rct_sprite& sprite : _s6.sprites)
{
if (sprite.generic.sprite_identifier == SPRITE_IDENTIFIER_PEEP)
{