(svn r15336) -Fix: do not use _current_company in the GUI as there are no guarantees that _current_company is the same as _local_company.

This commit is contained in:
rubidium
2009-02-04 16:45:07 +00:00
parent ce1fcfd8c0
commit a49197f522
14 changed files with 18 additions and 18 deletions

View File

@@ -417,7 +417,7 @@ public:
void ShowBuildIndustryWindow()
{
if (_game_mode != GM_EDITOR && !IsValidCompanyID(_current_company)) return;
if (_game_mode != GM_EDITOR && !IsValidCompanyID(_local_company)) return;
if (BringWindowToFrontById(WC_BUILD_INDUSTRY, 0)) return;
new BuildIndustryWindow();
}