From 5064dcdd2cb7f1699475eca256317c344495001d Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Fri, 26 Aug 2016 00:16:18 +0100 Subject: [PATCH] TBTR: Create template window: Fix vehicle unselection on drag abort. --- src/tbtr_template_gui_create.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tbtr_template_gui_create.cpp b/src/tbtr_template_gui_create.cpp index 28d264786c..ee404d14fe 100644 --- a/src/tbtr_template_gui_create.cpp +++ b/src/tbtr_template_gui_create.cpp @@ -279,7 +279,10 @@ public: virtual void OnPlaceObjectAbort() { + this->sel = INVALID_VEHICLE; + this->vehicle_over = INVALID_VEHICLE; this->RaiseButtons(); + this->SetDirty(); } virtual void DrawWidget(const Rect &r, int widget) const