summaryrefslogtreecommitdiff
path: root/src/genworld_gui.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2011-02-06 18:11:39 +0000
committeralberth <alberth@openttd.org>2011-02-06 18:11:39 +0000
commitd84502c4327343ce2f25bca77febd5eca68cdf6c (patch)
tree899da5ef5449308db969074dacf155e630fd7db8 /src/genworld_gui.cpp
parenta5921c0514bbed9152a1656af33235920d26c54e (diff)
downloadopenttd-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.cpp2
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;