1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 11:33:03 +01:00

Fix #14488: Crash when building too many rides

This commit is contained in:
Michael Steenbeek
2021-05-13 19:23:53 +02:00
committed by GitHub
parent d22afe2372
commit 513398b1f6

View File

@@ -182,7 +182,7 @@ ride_id_t GetNextFreeRideId()
break;
}
}
if (result >= RIDE_ID_NULL)
if (result >= MAX_RIDES)
{
return RIDE_ID_NULL;
}