forked from rosebudai/OpenRCT2-Web
Fix #14488: Crash when building too many rides
This commit is contained in:
1 parent
d22afe2372
commit
513398b1f6
1 file changed
+1
-1
@@ -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