mirror of https://github.com/OpenRCT2/OpenRCT2.git
Iterate widgets only until last (#20116)
This commit is contained in:
parent
0871525850
commit
f1c79f6ac4
|
@ -464,7 +464,7 @@ namespace OpenRCT2::Ui::Windows
|
|||
// Since the plugin may alter widget positions and sizes during an update event,
|
||||
// we need to force an update for all list view scrollbars
|
||||
WidgetIndex widgetIndex = 0;
|
||||
for (auto widget = widgets; widget->type != WindowWidgetType::Empty; widget++)
|
||||
for (auto widget = widgets; widget->type != WindowWidgetType::Last; widget++)
|
||||
{
|
||||
if (widget->type == WindowWidgetType::Scroll)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue