1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2025-12-10 06:52:05 +01:00

Fix #14794: Default railtype missing for some NewGRF rail vehicles. (#14795)

This commit is contained in:
Peter Nelson
2025-11-20 22:12:10 +00:00
committed by GitHub
parent 98275ee5d3
commit 9237685f4c

View File

@@ -75,8 +75,8 @@ struct RailVehicleInfo {
uint8_t image_index = 0;
RailVehicleTypes railveh_type = RAILVEH_WAGON;
uint8_t cost_factor = 0; ///< Purchase cost factor; For multiheaded engines the sum of both engine prices.
RailTypes railtypes{}; ///< Railtypes, mangled if elrail is disabled.
RailTypes intended_railtypes{}; ///< Intended railtypes, regardless of elrail being enabled or disabled.
RailTypes railtypes{RAILTYPE_RAIL}; ///< Railtypes, mangled if elrail is disabled.
RailTypes intended_railtypes{RAILTYPE_RAIL}; ///< Intended railtypes, regardless of elrail being enabled or disabled.
uint8_t ai_passenger_only = 0; ///< Bit value to tell AI that this engine is for passenger use only
uint16_t max_speed = 0; ///< Maximum speed (1 unit = 1/1.6 mph = 1 km-ish/h)
uint16_t power = 0; ///< Power of engine (hp); For multiheaded engines the sum of both engine powers.