diff options
-rw-r--r-- | src/order_cmd.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp index 6bfaad9ce..c33642cf8 100644 --- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -1613,6 +1613,8 @@ CommandCost CmdOrderRefit(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 /* Automatic refit cargo is only supported for goto station orders. */ if (cargo == CT_AUTO_REFIT && !order->IsType(OT_GOTO_STATION)) return CMD_ERROR; + if (order->GetLoadType() & OLFB_NO_LOAD) return CMD_ERROR; + if (flags & DC_EXEC) { order->SetRefit(cargo, subtype); |