mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-06 06:32:56 +01:00
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user