File diff r12193:b369d1676a33 → r12194:be89dc048e69
src/ai/api/ai_airport.cpp
Show inline comments
 
@@ -9,13 +9,13 @@
 
#include "../../command_type.h"
 
#include "../../town.h"
 
#include "../../economy_func.h"
 

	
 
/* 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)
 
{
 
	if (!IsValidAirportType(type)) return -1;