Use reference instead of copy.

This commit is contained in:
Matt 2018-08-20 21:12:06 +02:00
parent a89b352fb2
commit dcc4827833
1 changed files with 1 additions and 1 deletions

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)
{