diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/object_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/object_gui.cpp b/src/object_gui.cpp index e53ad6de1..3bd379887 100644 --- a/src/object_gui.cpp +++ b/src/object_gui.cpp @@ -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); |