diff options
author | rubidium <rubidium@openttd.org> | 2008-05-25 22:36:44 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-25 22:36:44 +0000 |
commit | d289464d69172a1048048aebe29bfd56250fc6fa (patch) | |
tree | 1460114c8e9243ecb6e428c7db15dfa7abc391ed /src/industry_gui.cpp | |
parent | 8d60206684a3322f7274cf4a7bf612e428558a31 (diff) | |
download | openttd-d289464d69172a1048048aebe29bfd56250fc6fa.tar.xz |
(svn r13255) -Codechange: move _opt to _settings.
Diffstat (limited to 'src/industry_gui.cpp')
-rw-r--r-- | src/industry_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp index f52fec3cc..57c7b9b51 100644 --- a/src/industry_gui.cpp +++ b/src/industry_gui.cpp @@ -195,7 +195,7 @@ public: * In Editor, you just build, while ingame, or you fund or you prospect */ if (_game_mode == GM_EDITOR) { /* We've chosen many random industries but no industries have been specified */ - if (indsp == NULL) this->enabled[this->selected_index] = _opt.diff.number_industries != 0; + if (indsp == NULL) this->enabled[this->selected_index] = _settings.difficulty.number_industries != 0; this->widget[DPIW_FUND_WIDGET].data = STR_BUILD_NEW_INDUSTRY; } else { this->widget[DPIW_FUND_WIDGET].data = (_settings.construction.raw_industry_construction == 2 && indsp->IsRawIndustry()) ? STR_PROSPECT_NEW_INDUSTRY : STR_FUND_NEW_INDUSTRY; |