diff options
Diffstat (limited to 'src/table/airport_defaults.h')
-rw-r--r-- | src/table/airport_defaults.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/table/airport_defaults.h b/src/table/airport_defaults.h index 2876b5810..84b67eb78 100644 --- a/src/table/airport_defaults.h +++ b/src/table/airport_defaults.h @@ -388,7 +388,7 @@ static AirportTileTable *_tile_table_helistation[] = { #define AS(ap_name, size_x, size_y, min_year, max_year, catchment, noise) \ AS_GENERIC(_tile_table_##ap_name, _airport_depots_##ap_name, lengthof(_airport_depots_##ap_name), size_x, size_y, noise, catchment, min_year, max_year) -AirportSpec _origin_airport_specs[NUM_AIRPORTS] = { +static const AirportSpec _origin_airport_specs[] = { AS(country, 4, 3, 0, 1959, 4, 3), AS(city, 6, 6, 1960, MAX_YEAR, 5, 5), AS_ND(heliport, 1, 1, 1963, MAX_YEAR, 4, 1), @@ -400,6 +400,8 @@ AirportSpec _origin_airport_specs[NUM_AIRPORTS] = { AS(helistation, 4, 2, 1980, MAX_YEAR, 4, 3), }; +assert_compile(NUM_AIRPORTS == lengthof(_origin_airport_specs)); + #undef AS #undef AS_ND #undef AS_GENERIC |