You've already forked OpenRCT2-Unity
mirror of
https://github.com/izzy2lost/OpenRCT2-Unity.git
synced 2026-03-10 12:38:22 -07: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