diff options
author | frosch <frosch@openttd.org> | 2008-08-27 19:21:01 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2008-08-27 19:21:01 +0000 |
commit | b4c0a3efe3f558eeba41103f596374f7815a2f78 (patch) | |
tree | c53d371a9c13f73b6fee0335c85cbf7928303b83 /src | |
parent | eeaeecd25518b227d6ef2c637dbadf2d979ed2e8 (diff) | |
download | openttd-b4c0a3efe3f558eeba41103f596374f7815a2f78.tar.xz |
(svn r14178) -Fix [FS#2256]: Do not evaluate GetDestination() for go-to-nearest-depot-orders.
Diffstat (limited to 'src')
-rw-r--r-- | src/order_cmd.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp index 94330096a..88a2343f4 100644 --- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -1465,6 +1465,7 @@ void RemoveOrderFromAllVehicles(OrderType type, DestinationID destination) /* 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(); |