mirror of https://github.com/OpenTTD/OpenTTD
(svn r14924) -Fix (r7403): Do not unnecessarily reset the cursor, when a different vehicle is dragged.
parent
067b9a15d1
commit
17a9bab142
|
@ -1072,7 +1072,6 @@ void DeleteDepotHighlightOfVehicle(const Vehicle *v)
|
||||||
|
|
||||||
w = dynamic_cast<DepotWindow*>(FindWindowById(WC_VEHICLE_DEPOT, v->tile));
|
w = dynamic_cast<DepotWindow*>(FindWindowById(WC_VEHICLE_DEPOT, v->tile));
|
||||||
if (w != NULL) {
|
if (w != NULL) {
|
||||||
w->sel = INVALID_VEHICLE;
|
if (w->sel == v->index) ResetObjectToPlace();
|
||||||
ResetObjectToPlace();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue