diff options
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 37c9841d0..c53e40ba5 100644 --- a/src/industry_gui.cpp +++ b/src/industry_gui.cpp @@ -482,7 +482,7 @@ public: this->SetDirty(); - if (GetCallbackWnd() == this && + if (_thd.GetCallbackWnd() == this && ((_game_mode != GM_EDITOR && _settings_game.construction.raw_industry_construction == 2 && indsp != NULL && indsp->IsRawIndustry()) || this->selected_type == INVALID_INDUSTRYTYPE || !this->enabled[this->selected_index])) { |