From 585b036c90b9984bf5a1ecc79e6932182fa8adc0 Mon Sep 17 00:00:00 2001 From: yexo Date: Fri, 5 Mar 2010 23:21:51 +0000 Subject: (svn r19327) -Codechange: make the oilrig a part of the original airports array so some special cases can be removed --- src/ai/api/ai_airport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ai') 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) -- cgit v1.2.3-54-g00ecf