1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 23:34:37 +01:00

Use correct type for EntityId and fix issues

This commit is contained in:
ζeh Matt
2022-02-13 01:48:36 +02:00
parent c1bd0ff047
commit 52047805db
12 changed files with 67 additions and 61 deletions

View File

@@ -83,7 +83,7 @@ struct GameStateSnapshot_t
if (saving)
{
for (size_t i = 0; i < numSprites; i++)
for (EntityId::UnderlyingType i = 0; i < numSprites; i++)
{
auto entity = getEntity(EntityId::FromUnderlying(i));
if (entity == nullptr || entity->base.Type == EntityType::Null)