1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 22:34:33 +01:00

Fix #6625: Not to try to open a ride window when it crashes

This commit is contained in:
TELK
2017-12-04 01:29:35 +09:00
committed by Michał Janiszewski
parent 08893ecff9
commit b7ca7d25ee

View File

@@ -7685,6 +7685,9 @@ void ride_set_to_default_inspection_interval(sint32 rideIndex)
*/
void ride_crash(uint8 rideIndex, uint8 vehicleIndex)
{
// It is unnecessary to deal with ride crash in headless server
if (gOpenRCT2Headless) return;
Ride *ride = get_ride(rideIndex);
rct_vehicle *vehicle = GET_VEHICLE(ride->vehicles[vehicleIndex]);