(svn r21739) -Fix [FS#4388] (r19657): make clearing refit orders work again

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
rubidium 14 years ago
parent be106c77a9
commit e2ef4aff46

@ -1332,7 +1332,7 @@ CommandCost CmdOrderRefit(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32
CargoID cargo = GB(p2, 0, 8); CargoID cargo = GB(p2, 0, 8);
byte subtype = GB(p2, 8, 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); const Vehicle *v = Vehicle::GetIfValid(veh);
if (v == NULL || !v->IsPrimaryVehicle()) return CMD_ERROR; if (v == NULL || !v->IsPrimaryVehicle()) return CMD_ERROR;

Loading…
Cancel
Save