diff --git a/src/tracerestrict_gui.cpp b/src/tracerestrict_gui.cpp index 22c7f5471f..5811e52afb 100644 --- a/src/tracerestrict_gui.cpp +++ b/src/tracerestrict_gui.cpp @@ -1645,6 +1645,9 @@ private: */ void SetObjectToPlaceAction(int widget, CursorID cursor) { + if (this->current_placement_widget != -1 && widget != this->current_placement_widget) { + ResetObjectToPlace(); + } this->ToggleWidgetLoweredState(widget); this->SetWidgetDirty(widget); if (this->IsWidgetLowered(widget)) {