(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:
@@ -1786,7 +1786,7 @@ bool CanBuildVehicleInfrastructure(VehicleType type)
|
||||
{
|
||||
assert(IsCompanyBuildableVehicleType(type));
|
||||
|
||||
if (!IsValidCompanyID(_current_company)) return false;
|
||||
if (!IsValidCompanyID(_local_company)) return false;
|
||||
if (_settings_client.gui.always_build_infrastructure) return true;
|
||||
|
||||
UnitID max;
|
||||
|
Reference in New Issue
Block a user