mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-23 23:04:36 +01:00
[Plugin] Fix crash when reading widget property on window that has both static and tab content (#18620)
This commit is contained in:
@@ -43,6 +43,7 @@
|
||||
- Fix: [#18453] Slow walking guests don't get across level crossings in time.
|
||||
- Fix: [#18459] ‘Highlight path issues’ hides fences for paths with additions.
|
||||
- Fix: [#18606] JSON objects do not take priority over the DAT files they supersede.
|
||||
- Fix: [#18620] [Plugin] Crash when reading widget properties from windows that have both static and tab widgets.
|
||||
|
||||
0.4.2 (2022-10-05)
|
||||
------------------------------------------------------------------------
|
||||
|
||||
@@ -365,7 +365,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
auto tabWidgetIndex = widgetDescIndex - Desc.Widgets.size();
|
||||
if (tabWidgetIndex < widgets.size())
|
||||
{
|
||||
return &widgets[widgetDescIndex];
|
||||
return &widgets[tabWidgetIndex];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user