From 312297eaae7f65192393f02e3a2681b865533ae0 Mon Sep 17 00:00:00 2001 From: tron Date: Sun, 3 Sep 2006 20:21:04 +0000 Subject: [PATCH] (svn r6361) -Fix: When removing orders of a deleted station/depot/waypoint do not skip vehicles without an order list, because they still can have a current order and/or last visited station, which must be inspected --- order_cmd.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/order_cmd.c b/order_cmd.c index dae0dd5e87..c7596b1829 100644 --- a/order_cmd.c +++ b/order_cmd.c @@ -975,8 +975,6 @@ void RemoveOrderFromAllVehicles(OrderType type, DestinationID destination) Order *order; bool invalidate; - if (v->orders == NULL) continue; - /* Forget about this station if this station is removed */ if (v->last_station_visited == destination && type == OT_GOTO_STATION) { v->last_station_visited = INVALID_STATION;