1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-31 10:29:10 +00:00

Fix #12195: Reset cursor when no Object is selected (#12207)

This commit is contained in:
Loïc Guilloux
2024-03-02 13:02:56 +01:00
committed by Kuhnovic
parent c15af03b69
commit a3eb42cd68

View File

@@ -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);