# HG changeset patch # User sbr # Date 1370033465 0 # Branch fs5567_00 # Node ID ab01bf554343a07fce95c31d60889bbf26a288fe # Parent d574a6cda4bfe379f7edec4a6955668d5bfd7b38 # Parent 1dd9067c39aa68e49a1d9a087aef6e4974f23a6e -Fix [FS#5567] (r25283): Use the UI index of the selected object to make it visible when re-opening the build object window. diff --git a/src/object_gui.cpp b/src/object_gui.cpp --- a/src/object_gui.cpp +++ b/src/object_gui.cpp @@ -109,7 +109,7 @@ 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()