(svn r19361) -Fix [FS#3664](r19353): crash when an airport was deleted

This commit is contained in:
yexo 2010-03-06 23:54:54 +00:00
parent d7f7c8949f
commit 8d033e964e
1 changed files with 1 additions and 0 deletions

View File

@ -378,5 +378,6 @@ static void AirportPrintOut(uint nofelements, const AirportFTA *layout, bool ful
const AirportFTAClass *GetAirport(const byte airport_type)
{
if (airport_type == AT_DUMMY) return &_airportfta_dummy;
return AirportSpec::Get(airport_type)->fsm;
}