(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
authortron
Sun, 03 Sep 2006 20:21:04 +0000
changeset 4534 172e921e31b2
parent 4533 5959e77ff4a5
child 4535 17934c877430
(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
--- a/order_cmd.c	Sun Sep 03 19:29:31 2006 +0000
+++ b/order_cmd.c	Sun Sep 03 20:21:04 2006 +0000
@@ -975,8 +975,6 @@
 		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;