summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()