mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix #8414: Rides tab in object selection window is broken
Widgets were still being created for disabled object types which were placed at same position as ride tab.
This commit is contained in:
parent
85b443fc15
commit
76d761c299
|
@ -364,7 +364,7 @@ static void window_editor_object_selection_init_widgets()
|
|||
{
|
||||
_window_editor_object_selection_widgets_initialised = true;
|
||||
auto tabWidget = widgets[widgets.size() - 2];
|
||||
for (int32_t i = 1; i < OBJECT_TYPE_COUNT; i++)
|
||||
for (size_t i = 1; i < std::size(ObjectSelectionPages); i++)
|
||||
{
|
||||
widgets.insert(widgets.end() - 1, tabWidget);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue