summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-06-21 20:59:30 +0000
committerfrosch <frosch@openttd.org>2009-06-21 20:59:30 +0000
commitb07ef35f448f3e948c7fe4b52be1399586aa0153 (patch)
tree4cc29a31723a8f351dd0aeddb2aa310c8f59f4b8 /src/ai
parentacff607624308b1b652e9c8a5aad09d3ef863322 (diff)
downloadopenttd-b07ef35f448f3e948c7fe4b52be1399586aa0153.tar.xz
(svn r16618) -Fix (r16614): Silence a warning.
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 469f90591..137de54c7 100644
--- a/src/ai/api/ai_airport.cpp
+++ b/src/ai/api/ai_airport.cpp
@@ -12,7 +12,7 @@
/* static */ bool AIAirport::IsValidAirportType(AirportType type)
{
- return type >= 0 && type < NUM_AIRPORTS && ::GetAirport(type)->IsAvailable();
+ return type >= 0 && type < (AirportType)NUM_AIRPORTS && ::GetAirport(type)->IsAvailable();
}
/* static */ Money AIAirport::GetPrice(AirportType type)