diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp index 5d32857d47..db3ad4071c 100644 --- a/src/industry_gui.cpp +++ b/src/industry_gui.cpp @@ -1721,8 +1721,8 @@ private: } }; -assert_compile(MAX_CARGOES >= lengthof(IndustrySpec::produced_cargo)); -assert_compile(MAX_CARGOES >= lengthof(IndustrySpec::accepts_cargo)); +assert_compile(MAX_CARGOES >= cpp_lengthof(IndustrySpec, produced_cargo)); +assert_compile(MAX_CARGOES >= cpp_lengthof(IndustrySpec, accepts_cargo)); int CargoesField::small_height; ///< Height of the header row. int CargoesField::normal_height; ///< Height of the non-header rows.