mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-27 16:39:09 +00:00
(svn r16618) -Fix (r16614): Silence a warning.
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
/* static */ bool AIAirport::IsValidAirportType(AirportType type)
|
/* 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)
|
/* static */ Money AIAirport::GetPrice(AirportType type)
|
||||||
|
Reference in New Issue
Block a user