1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 05:23:04 +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

@@ -519,7 +519,7 @@ void game_unload_scripts()
*/
void reset_all_sprite_quadrant_placements()
{
for (size_t i = 0; i < MAX_ENTITIES; i++)
for (EntityId::UnderlyingType i = 0; i < MAX_ENTITIES; i++)
{
auto* spr = GetEntity(EntityId::FromUnderlying(i));
if (spr != nullptr && spr->Type != EntityType::Null)