diff --git a/src/newgrf_airport.cpp b/src/newgrf_airport.cpp --- a/src/newgrf_airport.cpp +++ b/src/newgrf_airport.cpp @@ -23,8 +23,6 @@ static AirportClass _airport_classes[APC AirportOverrideManager _airport_mngr(NEW_AIRPORT_OFFSET, NUM_AIRPORTS, AT_INVALID); -AirportSpec AirportSpec::dummy = {NULL, NULL, 0, NULL, 0, 0, 0, 0, 0, MIN_YEAR, MIN_YEAR, STR_NULL, ATP_TTDP_LARGE, APC_BEGIN, false, {AT_INVALID, 0, NULL, NULL, AT_INVALID}}; - AirportSpec AirportSpec::specs[NUM_AIRPORTS]; /** diff --git a/src/station_base.h b/src/station_base.h --- a/src/station_base.h +++ b/src/station_base.h @@ -60,7 +60,6 @@ struct Airport : public TileArea { const AirportFTAClass *GetFTA() const { - if (this->tile == INVALID_TILE) return GetAirport(AT_DUMMY); return this->GetSpec()->fsm; } }; diff --git a/src/table/airport_defaults.h b/src/table/airport_defaults.h --- a/src/table/airport_defaults.h +++ b/src/table/airport_defaults.h @@ -406,6 +406,8 @@ extern const AirportSpec _origin_airport assert_compile(NEW_AIRPORT_OFFSET == lengthof(_origin_airport_specs)); +AirportSpec AirportSpec::dummy = AS_GENERIC(&_airportfta_dummy, NULL, 0, NULL, 0, 0, 0, 0, 0, MIN_YEAR, MIN_YEAR, ATP_TTDP_LARGE, APC_BEGIN, STR_NULL, false); + #undef AS #undef AS_ND #undef AS_GENERIC