(svn r19361) -Fix [FS#3664](r19353): crash when an airport was deleted
This commit is contained in:
@@ -378,5 +378,6 @@ static void AirportPrintOut(uint nofelements, const AirportFTA *layout, bool ful
|
|||||||
|
|
||||||
const AirportFTAClass *GetAirport(const byte airport_type)
|
const AirportFTAClass *GetAirport(const byte airport_type)
|
||||||
{
|
{
|
||||||
|
if (airport_type == AT_DUMMY) return &_airportfta_dummy;
|
||||||
return AirportSpec::Get(airport_type)->fsm;
|
return AirportSpec::Get(airport_type)->fsm;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user