Mercurial > hg > openttd
changeset 20594:9974785d83f2 draft
(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)
author | frosch <frosch@openttd.org> |
---|---|
date | Sun, 30 Jun 2013 14:37:01 +0000 |
parents | 862c25eab589 |
children | 84bd8634e4ba |
files | src/object_gui.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/object_gui.cpp +++ b/src/object_gui.cpp @@ -107,7 +107,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()