From 256fa07de6b527304b5c22e9efe02dc4582bd42f Mon Sep 17 00:00:00 2001 From: bjarni Date: Tue, 5 Dec 2006 23:57:04 +0000 Subject: (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) --- ship_cmd.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ship_cmd.c') diff --git a/ship_cmd.c b/ship_cmd.c index c7e6f9c3a..0f361b54d 100644 --- a/ship_cmd.c +++ b/ship_cmd.c @@ -1030,6 +1030,7 @@ int32 CmdSendShipToDepot(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) v->current_order.type = OT_GOTO_DEPOT; v->current_order.flags = OF_NON_STOP; if (!(p2 & DEPOT_SERVICE)) SETBIT(v->current_order.flags, OFB_HALT_IN_DEPOT); + v->current_order.refit_cargo = CT_INVALID; v->current_order.dest = dep->index; InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, STATUS_BAR); } -- cgit v1.2.3-70-g09d2