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
1 changed files with 3 additions and 0 deletions

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;