diff options
author | frosch <frosch@openttd.org> | 2009-01-08 21:13:20 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-01-08 21:13:20 +0000 |
commit | 17a9bab1422401e3d7f2c29ed50054ff3bcf3b24 (patch) | |
tree | 4bf795690fd9291d864784ed2b62afcd24939334 /src | |
parent | 067b9a15d1ec82a2ba9b4f8543dd3ce72ba3f050 (diff) | |
download | openttd-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.cpp | 3 |
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(); } } |