mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r19361) -Fix [FS#3664](r19353): crash when an airport was deleted
This commit is contained in:
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)
|
||||
{
|
||||
if (airport_type == AT_DUMMY) return &_airportfta_dummy;
|
||||
return AirportSpec::Get(airport_type)->fsm;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue