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

This commit is contained in:
Michał Janiszewski authored and GitHub committed 2025-09-09 14:22:05 +00:00
1 parent 8eb9e4aceb
commit a37cdcf178
2 files changed
+5 -1

No files matched your search

+1
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)
------------------------------------------------------------------------
+4 -1
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;
}