src/order_cmd.cpp
changeset 10019 76ac1a1696bc
parent 10015 2b721243365f
child 10020 349c8abfb97d
--- a/src/order_cmd.cpp	Mon Aug 25 22:10:47 2008 +0000
+++ b/src/order_cmd.cpp	Wed Aug 27 19:21:01 2008 +0000
@@ -1465,6 +1465,7 @@
 		/* Clear the order from the order-list */
 		invalidate = false;
 		FOR_VEHICLE_ORDERS(v, order) {
+			if (order->IsType(OT_GOTO_DEPOT) && (order->GetDepotActionType() & ODATFB_NEAREST_DEPOT) != 0) continue;
 			if ((v->type == VEH_AIRCRAFT && order->IsType(OT_GOTO_DEPOT) ? OT_GOTO_STATION : order->GetType()) == type &&
 					order->GetDestination() == destination) {
 				order->MakeDummy();