summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-06-30 14:37:01 +0000
committerfrosch <frosch@openttd.org>2013-06-30 14:37:01 +0000
commitbcb0e04bf2fdd5cf8c9bd9ed44ee75180aca2f22 (patch)
tree8cc35f51e57d85bfe4d75d423b9329c8343f3ce9 /src
parent43ec0bf0c118b5228a9c50a2ba1650d021dc5c44 (diff)
downloadopenttd-bcb0e04bf2fdd5cf8c9bd9ed44ee75180aca2f22.tar.xz
(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)
Diffstat (limited to 'src')
-rw-r--r--src/object_gui.cpp2
1 files changed, 1 insertions, 1 deletions
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()