diff options
author | alberth <alberth@openttd.org> | 2011-02-06 18:11:39 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2011-02-06 18:11:39 +0000 |
commit | d84502c4327343ce2f25bca77febd5eca68cdf6c (patch) | |
tree | 899da5ef5449308db969074dacf155e630fd7db8 /src/genworld_gui.cpp | |
parent | a5921c0514bbed9152a1656af33235920d26c54e (diff) | |
download | openttd-d84502c4327343ce2f25bca77febd5eca68cdf6c.tar.xz |
(svn r22000) -Codechange: Introduce an enum for the industry density setting.
Diffstat (limited to 'src/genworld_gui.cpp')
-rw-r--r-- | src/genworld_gui.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/genworld_gui.cpp b/src/genworld_gui.cpp index 029ea1055..a62c2e4f5 100644 --- a/src/genworld_gui.cpp +++ b/src/genworld_gui.cpp @@ -339,6 +339,8 @@ static const StringID _num_towns[] = {STR_NUM_VERY_LOW, STR_NUM_LOW, STR_NUM_N static const StringID _num_inds[] = {STR_FUNDING_ONLY, STR_MINIMAL, STR_NUM_VERY_LOW, STR_NUM_LOW, STR_NUM_NORMAL, STR_NUM_HIGH, INVALID_STRING_ID}; static const StringID _variety[] = {STR_VARIETY_NONE, STR_VARIETY_VERY_LOW, STR_VARIETY_LOW, STR_VARIETY_MEDIUM, STR_VARIETY_HIGH, STR_VARIETY_VERY_HIGH, INVALID_STRING_ID}; +assert_compile(lengthof(_num_inds) == ID_END + 1); + struct GenerateLandscapeWindow : public QueryStringBaseWindow { uint widget_id; uint x; |