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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user