(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:
@@ -282,7 +282,7 @@ static const WindowDesc _build_docks_toolbar_desc = {
|
||||
|
||||
void ShowBuildDocksToolbar()
|
||||
{
|
||||
if (!IsValidCompanyID(_current_company)) return;
|
||||
if (!IsValidCompanyID(_local_company)) return;
|
||||
|
||||
DeleteWindowByClass(WC_BUILD_TOOLBAR);
|
||||
AllocateWindowDescFront<BuildDocksToolbarWindow>(&_build_docks_toolbar_desc, TRANSPORT_WATER);
|
||||
|
Reference in New Issue
Block a user