summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-03-05 23:21:51 +0000
committeryexo <yexo@openttd.org>2010-03-05 23:21:51 +0000
commit585b036c90b9984bf5a1ecc79e6932182fa8adc0 (patch)
treedf4b7bd9a7b682d76ec4209622545fe90e825209 /src/ai
parentc42e2a9bfc2114d54257832a644d485244c0c537 (diff)
downloadopenttd-585b036c90b9984bf5a1ecc79e6932182fa8adc0.tar.xz
(svn r19327) -Codechange: make the oilrig a part of the original airports array so some special cases can be removed
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/api/ai_airport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/api/ai_airport.cpp b/src/ai/api/ai_airport.cpp
index ce30782cb..7b1119765 100644
--- a/src/ai/api/ai_airport.cpp
+++ b/src/ai/api/ai_airport.cpp
@@ -22,7 +22,7 @@
/* static */ bool AIAirport::IsAirportInformationAvailable(AirportType type)
{
- return type >= 0 && type < (AirportType)NUM_AIRPORTS;
+ return type >= 0 && type < (AirportType)NUM_AIRPORTS && AirportSpec::Get(type)->enabled;
}
/* static */ Money AIAirport::GetPrice(AirportType type)