summaryrefslogtreecommitdiff
path: root/src/industry_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/industry_gui.cpp
parenta5921c0514bbed9152a1656af33235920d26c54e (diff)
downloadopenttd-d84502c4327343ce2f25bca77febd5eca68cdf6c.tar.xz
(svn r22000) -Codechange: Introduce an enum for the industry density setting.
Diffstat (limited to 'src/industry_gui.cpp')
-rw-r--r--src/industry_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp
index 94a09111b..799044975 100644
--- a/src/industry_gui.cpp
+++ b/src/industry_gui.cpp
@@ -602,7 +602,7 @@ public:
this->SetupArrays();
const IndustrySpec *indsp = (this->selected_type == INVALID_INDUSTRYTYPE) ? NULL : GetIndustrySpec(this->selected_type);
- if (indsp == NULL) this->enabled[this->selected_index] = _settings_game.difficulty.number_industries != 0;
+ if (indsp == NULL) this->enabled[this->selected_index] = _settings_game.difficulty.number_industries != ID_FUND_ONLY;
this->SetButtons();
}
};