1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-10 09:32:29 +01:00

Fix #25132: crash when trying to use simulate on incomplete ride (#25133)

This commit is contained in:
Michał Janiszewski
2025-09-09 16:22:05 +02:00
committed by GitHub
parent 8eb9e4aceb
commit a37cdcf178
2 changed files with 5 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
0.4.27 (in development)
------------------------------------------------------------------------
- Fix: [#25132] Crash when trying to use simulate on incomplete ride.
0.4.26 (2025-09-06)
------------------------------------------------------------------------

View File

@@ -1866,7 +1866,10 @@ namespace OpenRCT2::Ui::Windows
SetDropdown(info, RideStatus::open, STR_OPEN_RIDE);
WindowDropdownShowText(
{ windowPos.x + widget->left, windowPos.y + widget->top }, widget->height() + 1, colours[1], 0, info.NumItems);
gDropdown.items[info.CheckedIndex].setChecked(true);
if (info.CheckedIndex != -1)
{
gDropdown.items[info.CheckedIndex].setChecked(true);
}
gDropdown.defaultIndex = info.DefaultIndex;
}