summaryrefslogtreecommitdiff
path: root/src/industry_gui.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-12-30 13:16:31 +0000
committeralberth <alberth@openttd.org>2010-12-30 13:16:31 +0000
commit22a13850cb0640d4fdfd8da66bc46ce20e2eb309 (patch)
treeaab09e147008a843c11fcb356d7e9c7993ea680d /src/industry_gui.cpp
parent703ff560c19e2b21597e9ed25b3e394a2085702a (diff)
downloadopenttd-22a13850cb0640d4fdfd8da66bc46ce20e2eb309.tar.xz
(svn r21665) -Codechange: Make GetCallbackWnd a method of _thd.
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 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])) {