forked from mirror/OpenTTD
(svn r22845) -Fix [FS#4745]: perform stricter checks on some commands (monoid)
This commit is contained in:
@@ -524,10 +524,11 @@ CommandCost CmdDepotSellAllVehicles(TileIndex tile, DoCommandFlag flags, uint32
|
||||
|
||||
CommandCost cost(EXPENSES_NEW_VEHICLES);
|
||||
VehicleType vehicle_type = Extract<VehicleType, 0, 3>(p1);
|
||||
uint sell_command = GetCmdSellVeh(vehicle_type);
|
||||
|
||||
if (!IsCompanyBuildableVehicleType(vehicle_type)) return CMD_ERROR;
|
||||
|
||||
uint sell_command = GetCmdSellVeh(vehicle_type);
|
||||
|
||||
/* Get the list of vehicles in the depot */
|
||||
BuildDepotVehicleList(vehicle_type, tile, &list, &list);
|
||||
|
||||
|
Reference in New Issue
Block a user