mirror of https://github.com/OpenTTD/OpenTTD
(svn r19361) -Fix [FS#3664](r19353): crash when an airport was deleted
parent
d7f7c8949f
commit
8d033e964e
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue