From 17a9bab1422401e3d7f2c29ed50054ff3bcf3b24 Mon Sep 17 00:00:00 2001 From: frosch Date: Thu, 8 Jan 2009 21:13:20 +0000 Subject: [PATCH] (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 c6338cba73..866ce14e55 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(); } }