summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-07-23 19:07:00 +0000
committeralberth <alberth@openttd.org>2010-07-23 19:07:00 +0000
commit645b6ce77345867fa96861843197481131566c46 (patch)
treede4fd618b373452fb34c6570ebe0fd12ad0a26a8
parenta9b492c050b8b4f298702f73b9a654f534ec722d (diff)
downloadopenttd-645b6ce77345867fa96861843197481131566c46.tar.xz
(svn r20210) -Fix (r20206): Allow other compilers to enjoy the new window too.
-rw-r--r--src/industry_gui.cpp4
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.