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
1 changed files with 1 additions and 1 deletions

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