From 3d5a91424a372b84753c12caa6ea1b94b71082df Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 12 Oct 2013 16:29:42 +0000 Subject: [PATCH] (svn r25830) -Fix [FS#5742] (r25540): In BuildObjectWindow, ensure the object spec matrix is always initialized. (sbr) --- src/object_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/object_gui.cpp b/src/object_gui.cpp index e53ad6de19..3bd3798877 100644 --- a/src/object_gui.cpp +++ b/src/object_gui.cpp @@ -82,8 +82,8 @@ public: NWidgetMatrix *matrix = this->GetWidget(WID_BO_SELECT_MATRIX); matrix->SetScrollbar(this->GetScrollbar(WID_BO_SELECT_SCROLL)); + this->SelectOtherClass(_selected_object_class); if (this->CanRestoreSelectedObject()) { - this->SelectOtherClass(_selected_object_class), this->SelectOtherObject(_selected_object_index); } else { this->SelectFirstAvailableObject(true);