From 9237685f4cbf7960e33eed4faf54ad83c1711096 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Thu, 20 Nov 2025 22:12:10 +0000 Subject: [PATCH] Fix #14794: Default railtype missing for some NewGRF rail vehicles. (#14795) --- src/engine_type.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine_type.h b/src/engine_type.h index 640a99b73f..2db0b9d23e 100644 --- a/src/engine_type.h +++ b/src/engine_type.h @@ -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.