TBTR: Create template window: Fix vehicle unselection on drag abort.

This commit is contained in:
Jonathan G Rennison
2016-08-26 00:16:18 +01:00
parent 0c5a98d125
commit 5064dcdd2c

View File

@@ -279,7 +279,10 @@ public:
virtual void OnPlaceObjectAbort() virtual void OnPlaceObjectAbort()
{ {
this->sel = INVALID_VEHICLE;
this->vehicle_over = INVALID_VEHICLE;
this->RaiseButtons(); this->RaiseButtons();
this->SetDirty();
} }
virtual void DrawWidget(const Rect &r, int widget) const virtual void DrawWidget(const Rect &r, int widget) const