(svn r21665) -Codechange: Make GetCallbackWnd a method of _thd.

This commit is contained in:
alberth
2010-12-30 13:16:31 +00:00
parent c5597c44c4
commit fdf0be0da8
5 changed files with 17 additions and 12 deletions

View File

@@ -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])) {