1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-28 09:14:58 +01:00

Use IsPeep in more places

This commit is contained in:
duncanspumpkin
2020-04-28 07:45:58 +01:00
parent 63549dee57
commit fed148648c
8 changed files with 12 additions and 13 deletions

View File

@@ -620,7 +620,7 @@ static void window_title_command_editor_tool_down(
uint16_t spriteIndex = info.sprite->generic.sprite_index;
uint16_t spriteIdentifier = info.sprite->generic.sprite_identifier;
bool validSprite = false;
if (spriteIdentifier == SPRITE_IDENTIFIER_PEEP)
if (info.sprite->IsPeep())
{
validSprite = true;
auto peep = GET_PEEP(spriteIndex);