Close #18315: Refactor Error window to class (#18403)

This commit is contained in:
Raymond Zhao authored and GitHub committed 2022-10-29 09:25:20 -03:00
1 parent f7364fe3db
commit 0647d12de8
3 files changed
+102 -104

No files matched your search

+8 -3
View File
@@ -1448,9 +1448,14 @@ void window_event_dropdown_call(rct_window* w, WidgetIndex widgetIndex, int32_t
void window_event_unknown_05_call(rct_window* w)
{
if (w->event_handlers != nullptr)
if (w->event_handlers->unknown_05 != nullptr)
w->event_handlers->unknown_05(w);
if (w->event_handlers == nullptr)
{
w->OnUnknown5();
}
else if (w->event_handlers->unknown_05 != nullptr)
{
w->event_handlers->unknown_05(w);
}
}
void window_event_update_call(rct_window* w)