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:
committed by
GitHub
parent
d22afe2372
commit
513398b1f6
@@ -182,7 +182,7 @@ ride_id_t GetNextFreeRideId()
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (result >= RIDE_ID_NULL)
|
||||
if (result >= MAX_RIDES)
|
||||
{
|
||||
return RIDE_ID_NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user