changeset 15551:fdcba2335701 draft

(svn r20210) -Fix (r20206): Allow other compilers to enjoy the new window too.
author alberth <alberth@openttd.org>
date Fri, 23 Jul 2010 19:07:00 +0000
parents 02df68b0a3c0
children 683f2dbe75bb
files src/industry_gui.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/industry_gui.cpp
+++ b/src/industry_gui.cpp
@@ -1721,8 +1721,8 @@
 	}
 };
 
-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.