diff options
author | smatz <smatz@openttd.org> | 2008-11-11 22:51:27 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-11-11 22:51:27 +0000 |
commit | 09e63d549880e0919b67016fd86c56f4ec90c06d (patch) | |
tree | fcb155078bb9c61361a6b12c3fc25876ac3d5b19 /src | |
parent | 1f623476938acf99cd6b399229667f1f883a37f6 (diff) | |
download | openttd-09e63d549880e0919b67016fd86c56f4ec90c06d.tar.xz |
(svn r14577) -Fix [FS#2403]: vehicle didn't respect its 'refit in nearest depot' order (Swallow)
Diffstat (limited to 'src')
-rw-r--r-- | src/order_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp index f9043b6ff..f26b70b87 100644 --- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -1623,7 +1623,7 @@ bool UpdateOrderDest(Vehicle *v, const Order *order, int conditional_depth) if (v->FindClosestDepot(&location, &destination, &reverse)) { v->dest_tile = location; - v->current_order.MakeGoToDepot(destination, v->current_order.GetDepotOrderType()); + v->current_order.MakeGoToDepot(destination, v->current_order.GetDepotOrderType(), v->current_order.GetRefitCargo(), v->current_order.GetRefitSubtype()); /* If there is no depot in front, reverse automatically (trains only) */ if (v->type == VEH_TRAIN && reverse) DoCommand(v->tile, v->index, 0, DC_EXEC, CMD_REVERSE_TRAIN_DIRECTION); |