diff options
-rw-r--r-- | src/industry_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp index 5d32857d4..db3ad4071 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. |