From bfbf74fe7d2bf314669b1d794d7e66a838668a35 Mon Sep 17 00:00:00 2001 From: michi_cc Date: Fri, 3 Aug 2012 14:15:52 +0000 Subject: [PATCH] (svn r24457) -Fix [FS#5264] (r23087): Changing auto-refit for a 'goto station' order was inadvertently modifying the full load state. --- src/order_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp index 1f80660867..0ce3059c97 100644 --- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -1617,7 +1617,7 @@ CommandCost CmdOrderRefit(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 order->SetRefit(cargo, subtype); /* Make the depot order an 'always go' order. */ - if (cargo != CT_NO_REFIT) { + if (cargo != CT_NO_REFIT && order->IsType(OT_GOTO_DEPOT)) { order->SetDepotOrderType((OrderDepotTypeFlags)(order->GetDepotOrderType() & ~ODTFB_SERVICE)); order->SetDepotActionType((OrderDepotActionFlags)(order->GetDepotActionType() & ~ODATFB_HALT)); }