1
0
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:
duncanspumpkin
2020-04-27 18:47:51 +01:00
parent 06bbf5ddda
commit 5b07a76f05
7 changed files with 16 additions and 18 deletions

View File

@@ -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;