diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/object_gui.cpp | 2 |
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() |