diff --git a/src/vehicle_cmd.cpp b/src/vehicle_cmd.cpp index 3fcb060340..0cc03b9fa4 100644 --- a/src/vehicle_cmd.cpp +++ b/src/vehicle_cmd.cpp @@ -172,7 +172,7 @@ CommandCost CmdDepotSellAllVehicles(TileIndex tile, DoCommandFlag flags, uint32 CommandCost cost(EXPENSES_NEW_VEHICLES); VehicleType vehicle_type = (VehicleType)GB(p1, 0, 8); - uint sell_command = GetCmdSendToDepot(vehicle_type);; + uint sell_command = GetCmdSellVeh(vehicle_type);; /* Get the list of vehicles in the depot */ BuildDepotVehicleList(vehicle_type, tile, &list, &list);