Mercurial > hg > openttd
changeset 17003:eefeb3bca2f3 draft
(svn r21739) -Fix [FS#4388] (r19657): make clearing refit orders work again
author | rubidium <rubidium@openttd.org> |
---|---|
date | Fri, 07 Jan 2011 12:45:12 +0000 |
parents | 9f83d76a6f12 |
children | 70f9ecb7f33b |
files | src/order_cmd.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -1332,7 +1332,7 @@ 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;