From 7da743a0dc8d9e5098da2464d405a0ed93803c17 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 4 Feb 2009 16:45:07 +0000 Subject: (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. --- src/vehicle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vehicle.cpp') diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 2e5f87eea..c53c13049 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -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; -- cgit v1.2.3-54-g00ecf