diff options
author | rubidium <rubidium@openttd.org> | 2011-01-07 12:45:12 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-01-07 12:45:12 +0000 |
commit | e2ef4aff461f4c5edd35de935211eb4025534b51 (patch) | |
tree | 2054ec1bfb015cccc83d860622443be92b88a06d | |
parent | be106c77a9e1be3c3ac9bcf10911301e7fedc725 (diff) | |
download | openttd-e2ef4aff461f4c5edd35de935211eb4025534b51.tar.xz |
(svn r21739) -Fix [FS#4388] (r19657): make clearing refit orders work again
-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 096b10e52..a17a67cbc 100644 --- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -1332,7 +1332,7 @@ CommandCost CmdOrderRefit(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 CargoID cargo = GB(p2, 0, 8); byte subtype = GB(p2, 8, 8); - if (cargo >= NUM_CARGO) return CMD_ERROR; + if (cargo >= NUM_CARGO && cargo != CT_NO_REFIT) return CMD_ERROR; const Vehicle *v = Vehicle::GetIfValid(veh); if (v == NULL || !v->IsPrimaryVehicle()) return CMD_ERROR; |