1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-23 07:43:01 +01:00

Fix #20433. Dropdown default selections not working (#20437)

This fixes it for rides but it is also an issue effecting a few different dropdowns
This commit is contained in:
Duncan
2023-06-23 06:20:02 +01:00
committed by GitHub
parent a6d3dbc6d9
commit 622c8cdb7e
6 changed files with 21 additions and 4 deletions

View File

@@ -1447,10 +1447,7 @@ void WindowEventDropdownCall(WindowBase* w, WidgetIndex widgetIndex, int32_t dro
{
if (w->event_handlers == nullptr)
{
if (dropdownIndex != -1)
{
w->OnDropdown(widgetIndex, dropdownIndex);
}
w->OnDropdown(widgetIndex, dropdownIndex);
}
else if (w->event_handlers->dropdown != nullptr)
{