Codefix: cargo_(dis)allowed for default refit masks are cargo classes, not CargoTypes. (#12884)
Use an alias for CargoClasses to avoid ambiguity.
This commit is contained in:
@@ -318,8 +318,8 @@ struct GRFTempEngineData {
|
||||
NONEMPTY, ///< GRF defined the vehicle as refittable. If the refitmask is empty after translation (cargotypes not available), disable the vehicle.
|
||||
};
|
||||
|
||||
uint16_t cargo_allowed;
|
||||
uint16_t cargo_disallowed;
|
||||
CargoClasses cargo_allowed;
|
||||
CargoClasses cargo_disallowed;
|
||||
RailTypeLabel railtypelabel;
|
||||
uint8_t roadtramtype;
|
||||
const GRFFile *defaultcargo_grf; ///< GRF defining the cargo translation table to use if the default cargo is the 'first refittable'.
|
||||
@@ -9001,8 +9001,8 @@ static void CalculateRefitMasks()
|
||||
static const struct DefaultRefitMasks {
|
||||
uint8_t climate;
|
||||
CargoLabel cargo_label;
|
||||
CargoTypes cargo_allowed;
|
||||
CargoTypes cargo_disallowed;
|
||||
CargoClasses cargo_allowed;
|
||||
CargoClasses cargo_disallowed;
|
||||
} _default_refit_masks[] = {
|
||||
{T | A | S | Y, CT_PASSENGERS, CC_PASSENGERS, 0},
|
||||
{T | A | S , CT_MAIL, CC_MAIL, 0},
|
||||
|
||||
Reference in New Issue
Block a user