From d84502c4327343ce2f25bca77febd5eca68cdf6c Mon Sep 17 00:00:00 2001 From: alberth Date: Sun, 6 Feb 2011 18:11:39 +0000 Subject: (svn r22000) -Codechange: Introduce an enum for the industry density setting. --- src/industry_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/industry_gui.cpp') 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(); } }; -- cgit v1.2.3-54-g00ecf