diff --git a/src/openrct2-ui/scripting/CustomWindow.cpp b/src/openrct2-ui/scripting/CustomWindow.cpp index 6b00b7fc91..b7dac7135b 100644 --- a/src/openrct2-ui/scripting/CustomWindow.cpp +++ b/src/openrct2-ui/scripting/CustomWindow.cpp @@ -577,9 +577,10 @@ namespace OpenRCT2::Ui::Windows } widget_invalidate(w, WIDX_TAB_0 + w->page); } - InvokeEventHandler(info.Owner, info.Desc.OnUpdate); } + InvokeEventHandler(info.Owner, info.Desc.OnUpdate); + // Since the plugin may alter widget positions and sizes during an update event, // we need to force an update for all list view scrollbars rct_widgetindex widgetIndex = 0;