1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 21:43:06 +01:00

Fix typos in RCT1-related code

This commit is contained in:
Michał Janiszewski
2017-01-27 22:13:49 +01:00
parent 51523df50a
commit 834cee311b
2 changed files with 2 additions and 2 deletions

View File

@@ -1422,7 +1422,7 @@ private:
dst->move_delay = src->move_delay;
dst->num_movements = src->num_movements;
dst->value = src->value;
dst->offset_x = dst->offset_x;
dst->offset_x = src->offset_x;
dst->wiggle = src->wiggle;
}

View File

@@ -115,7 +115,7 @@ namespace RCT1
PEEP_SPRITE_TYPE_CHICKEN, // 0x21
PEEP_SPRITE_TYPE_LEMONADE, // 0x22
};
if (rct1SpriteType < 0 || rct1SpriteType > Util::CountOf(map))
if (rct1SpriteType < 0 || rct1SpriteType >= Util::CountOf(map))
{
log_warning("Unsupported RCT1 peep sprite type: %d.", rct1SpriteType);
return PEEP_SPRITE_TYPE_NORMAL;