diff options
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 1f8066086..0ce3059c9 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)); } |