summaryrefslogtreecommitdiff
path: root/order_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-09-03 20:21:04 +0000
committertron <tron@openttd.org>2006-09-03 20:21:04 +0000
commitd267fa9c73b714e7f9bce3b5ea1dcc69ee244688 (patch)
tree29c8c0506e97c1337fca0879f8be69757c8d3167 /order_cmd.c
parent7ecc7d0ba470e163ef15a9163083fbcf005eb489 (diff)
downloadopenttd-d267fa9c73b714e7f9bce3b5ea1dcc69ee244688.tar.xz
(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
Diffstat (limited to 'order_cmd.c')
-rw-r--r--order_cmd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/order_cmd.c b/order_cmd.c
index dae0dd5e8..c7596b182 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;