1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 19:13:07 +01:00

fix infinite loop

This commit is contained in:
Ted John
2016-05-30 02:15:45 +01:00
parent 91b7db31d1
commit 2334e701e4

View File

@@ -4708,7 +4708,7 @@ void ride_create_vehicles_find_first_block(rct_ride *ride, rct_xy_element *outXY
if ((mapElement->properties.track.sequence & 0x0F) != 0) continue;
if (mapElement->properties.track.type != trackType) continue;
break;
} while (!map_element_is_last_for_tile(mapElement));
} while (!map_element_is_last_for_tile(mapElement++));
outXYElement->x = x;
outXYElement->y = y;