# HG changeset patch # User michi_cc # Date 2012-08-03 14:15:52 # Node ID aaa5a65470fe18acd7835495128bc4de7ae70485 # Parent 3eaf1e8258e08868b4113872720c97cc4c6f2e4b (svn r24457) -Fix [FS#5264] (r23087): Changing auto-refit for a 'goto station' order was inadvertently modifying the full load state. diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp --- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -1617,7 +1617,7 @@ CommandCost CmdOrderRefit(TileIndex tile 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)); }