From bcb0e04bf2fdd5cf8c9bd9ed44ee75180aca2f22 Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 30 Jun 2013 14:37:01 +0000 Subject: (svn r25538) -Fix [FS#5567] (r25283): Use the UI index of the selected object to make it visible when re-opening the build object window. (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 c295abcf0..8e687b836 100644 --- a/src/object_gui.cpp +++ b/src/object_gui.cpp @@ -107,7 +107,7 @@ public: this->FindWindowPlacementAndResize(this->width, this->height); } - if (_selected_object_index != -1) matrix->SetClicked(_selected_object_index); + if (_selected_object_index != -1) matrix->SetClicked(ObjectClass::Get(_selected_object_class)->GetUIFromIndex(_selected_object_index)); } virtual ~BuildObjectWindow() -- cgit v1.2.3-70-g09d2