# HG changeset patch # Date 1363331883 0 # User sbr # Parent 7c3a9164bb21bebdd62f6937bfa5d6203af78576 When opening the BuildObjectWindow, ensure the selected object is visible in the object selector. diff --git a/src/object_gui.cpp b/src/object_gui.cpp --- a/src/object_gui.cpp +++ b/src/object_gui.cpp @@ -85,6 +85,7 @@ NWidgetMatrix *matrix = this->GetWidget(WID_BO_SELECT_MATRIX); matrix->SetScrollbar(this->GetScrollbar(WID_BO_SELECT_SCROLL)); matrix->SetCount(ObjectClass::Get(_selected_object_class)->GetUISpecCount()); + if (_selected_object_index != -1) matrix->SetClicked(_selected_object_index); } virtual ~BuildObjectWindow()