From 10b664dbac098d01cb5fe868f709b86ab054c82f Mon Sep 17 00:00:00 2001 From: frosch Date: Thu, 8 Jan 2009 21:13:20 +0000 Subject: (svn r14924) -Fix (r7403): Do not unnecessarily reset the cursor, when a different vehicle is dragged. --- src/depot_gui.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index c6338cba7..866ce14e5 100644 --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -1072,7 +1072,6 @@ void DeleteDepotHighlightOfVehicle(const Vehicle *v) w = dynamic_cast(FindWindowById(WC_VEHICLE_DEPOT, v->tile)); if (w != NULL) { - w->sel = INVALID_VEHICLE; - ResetObjectToPlace(); + if (w->sel == v->index) ResetObjectToPlace(); } } -- cgit v1.2.3-70-g09d2