1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 15:24:30 +01:00

Fix #9813: Crashes on loaded save game

Because ride bool array was not passed by reference, game though all rides had no track and reset their type on export.
This commit is contained in:
Ted John
2019-08-09 18:39:47 +01:00
parent 60060480c2
commit 6dcedf7f57

View File

@@ -646,7 +646,7 @@ void scenario_fix_ghosts(rct_s6_data* s6)
}
}
static void ride_all_has_any_track_elements(std::array<bool, RCT12_MAX_RIDES_IN_PARK> rideIndexArray)
static void ride_all_has_any_track_elements(std::array<bool, RCT12_MAX_RIDES_IN_PARK> &rideIndexArray)
{
tile_element_iterator it;
tile_element_iterator_begin(&it);