mirror of https://github.com/OpenRCT2/OpenRCT2.git
Use reference instead of copy.
This commit is contained in:
parent
a89b352fb2
commit
dcc4827833
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue