(svn r25830) -Fix [FS#5742] (r25540): In BuildObjectWindow, ensure the object spec matrix is always initialized. (sbr)

This commit is contained in:
frosch 2013-10-12 16:29:42 +00:00
parent 7a75010b25
commit 3d5a91424a
1 changed files with 1 additions and 1 deletions

View File

@ -82,8 +82,8 @@ public:
NWidgetMatrix *matrix = this->GetWidget<NWidgetMatrix>(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);