summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-01-08 21:13:20 +0000
committerfrosch <frosch@openttd.org>2009-01-08 21:13:20 +0000
commit17a9bab1422401e3d7f2c29ed50054ff3bcf3b24 (patch)
tree4bf795690fd9291d864784ed2b62afcd24939334 /src
parent067b9a15d1ec82a2ba9b4f8543dd3ce72ba3f050 (diff)
downloadopenttd-17a9bab1422401e3d7f2c29ed50054ff3bcf3b24.tar.xz
(svn r14924) -Fix (r7403): Do not unnecessarily reset the cursor, when a different vehicle is dragged.
Diffstat (limited to 'src')
-rw-r--r--src/depot_gui.cpp3
1 files changed, 1 insertions, 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<DepotWindow*>(FindWindowById(WC_VEHICLE_DEPOT, v->tile));
if (w != NULL) {
- w->sel = INVALID_VEHICLE;
- ResetObjectToPlace();
+ if (w->sel == v->index) ResetObjectToPlace();
}
}