1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Fix object selection tabs (#24512)

Regression from c383a7778c (#24481)
This commit is contained in:
Aaron van Geffen
2025-05-27 11:34:57 +02:00
committed by GitHub
parent 34bf07915f
commit 4ef74c0f3a

View File

@@ -1139,12 +1139,14 @@ namespace OpenRCT2::Ui::Windows
SetWidgets(_window_editor_object_selection_widgets);
if (!tabWidgetsInitialised)
{
tabWidgetsInitialised = true;
const auto& tabWidget = widgets[WIDX_TAB_1];
// Create a new tab widget based on the initial one
auto tabWidget = widgets[WIDX_TAB_1];
for (size_t i = 1; i < std::size(ObjectSelectionPages); i++)
{
widgets.insert(widgets.end() - 1, tabWidget);
}
tabWidgetsInitialised = true;
}
}