From 253ba0d354dcb2cb3c754256fa4ff374e28676fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Guilloux?= Date: Sat, 2 Mar 2024 13:02:56 +0100 Subject: [PATCH] Fix #12195: Reset cursor when no Object is selected (#12207) --- src/object_gui.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/object_gui.cpp b/src/object_gui.cpp index a72edbe4ff..6e911359aa 100644 --- a/src/object_gui.cpp +++ b/src/object_gui.cpp @@ -441,6 +441,8 @@ public: if (_selected_object_index != -1) { SetObjectToPlaceWnd(SPR_CURSOR_TRANSMITTER, PAL_NONE, HT_RECT | HT_DIAGONAL, this); + } else { + ResetObjectToPlace(); } this->UpdateButtons(_selected_object_class, _selected_object_index, _selected_object_view);