mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-20 05:23:04 +01:00
Use sprite_identifier when identifying entitys
The linked list index is only meant to be used for accessing the linked lists. Using the wrong variable is unlikely to cause issues for this exact case but it makes things cleaner.
This commit is contained in:
@@ -202,7 +202,7 @@ static bool map_animation_invalidate_small_scenery(const CoordsXYZ& loc)
|
||||
for (; spriteIdx != SPRITE_INDEX_NULL; spriteIdx = sprite->generic.next_in_quadrant)
|
||||
{
|
||||
sprite = get_sprite(spriteIdx);
|
||||
if (sprite->generic.linked_list_index != SPRITE_LIST_PEEP)
|
||||
if (sprite->generic.sprite_identifier != SPRITE_IDENTIFIER_PEEP)
|
||||
continue;
|
||||
|
||||
peep = &sprite->peep;
|
||||
|
||||
Reference in New Issue
Block a user