diff options
author | alberth <alberth@openttd.org> | 2013-05-24 19:12:45 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2013-05-24 19:12:45 +0000 |
commit | 4037251c82aa64b7cf85c2460aea9401b6975f35 (patch) | |
tree | d8b8dd291c79f7211820de88694350408175d946 | |
parent | 4bdf33a1df83e7dc832c407005bdc474dcd9c862 (diff) | |
download | openttd-4037251c82aa64b7cf85c2460aea9401b6975f35.tar.xz |
(svn r25283) -Add: When opening the object-build window, make the selected object visible again in the selector (sbr).
-rw-r--r-- | src/object_gui.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/object_gui.cpp b/src/object_gui.cpp index 429f7a40f..4af9c6f69 100644 --- a/src/object_gui.cpp +++ b/src/object_gui.cpp @@ -82,6 +82,7 @@ public: NWidgetMatrix *matrix = this->GetWidget<NWidgetMatrix>(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() |