1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 00:03:11 +01:00

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:
Ted John
2018-12-10 19:50:12 +00:00
parent 85b443fc15
commit 76d761c299

View File

@@ -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);
}