(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 09fca459a7
commit 7da743a0dc
14 changed files with 18 additions and 18 deletions

View File

@@ -147,7 +147,7 @@ static const WindowDesc _air_toolbar_desc = {
void ShowBuildAirToolbar()
{
if (!IsValidCompanyID(_current_company)) return;
if (!IsValidCompanyID(_local_company)) return;
DeleteWindowByClass(WC_BUILD_TOOLBAR);
AllocateWindowDescFront<BuildAirToolbarWindow>(&_air_toolbar_desc, TRANSPORT_AIR);