diff options
author | bjarni <bjarni@openttd.org> | 2006-12-05 23:57:04 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2006-12-05 23:57:04 +0000 |
commit | 256fa07de6b527304b5c22e9efe02dc4582bd42f (patch) | |
tree | ab6b8f0d3aa0387b1e9bcb8b43661cef34413984 /train_cmd.c | |
parent | b461b8dbe5f95d7ee6329637e0ae1e0d05a96b56 (diff) | |
download | openttd-256fa07de6b527304b5c22e9efe02dc4582bd42f.tar.xz |
(svn r7389) -Fix: when forcing a vehicle to go to a depot, clear refit orders from current orders (caused refit error popup when not having no orders)
Diffstat (limited to 'train_cmd.c')
-rw-r--r-- | train_cmd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/train_cmd.c b/train_cmd.c index a1792deb5..6d56e6166 100644 --- a/train_cmd.c +++ b/train_cmd.c @@ -2050,6 +2050,7 @@ int32 CmdSendTrainToDepot(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) v->current_order.flags = OF_NON_STOP; if (!(p2 & DEPOT_SERVICE)) SETBIT(v->current_order.flags, OFB_HALT_IN_DEPOT); v->current_order.dest = GetDepotByTile(tfdd.tile)->index; + v->current_order.refit_cargo = CT_INVALID; InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, STATUS_BAR); /* If there is no depot in front, reverse automatically */ if (tfdd.reverse) |