1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

prevent crash with hacked spiral slides

This commit is contained in:
Tomas Dittmann
2017-07-09 20:05:27 +02:00
committed by Michael Steenbeek
parent ba2f129ca1
commit a163c2b1b3

View File

@@ -2202,6 +2202,9 @@ static void ride_spiral_slide_update(rct_ride *ride)
sint32 y = ride->station_starts[i] >> 8;
rct_map_element *mapElement = ride_get_station_start_track_element(ride, i);
if (mapElement == NULL)
return;
sint32 rotation = map_element_get_direction(mapElement);
x *= 32;
y *= 32;