# HG changeset patch # User glx22 # Date 2019-03-30 21:12:25 # Node ID b1a6d3e60ba849b2f4c80d0dd2aa580d27a3e4fa # Parent 429c76c0dfda00d8dd8e4cd8ee8f143ec83c9b01 Fix #7433: don't use AirportSpec substitute if it's not set (#7435) diff --git a/src/newgrf_airport.cpp b/src/newgrf_airport.cpp --- a/src/newgrf_airport.cpp +++ b/src/newgrf_airport.cpp @@ -100,6 +100,7 @@ AirportSpec AirportSpec::specs[NUM_AIRPO assert(type < lengthof(AirportSpec::specs)); const AirportSpec *as = &AirportSpec::specs[type]; if (type >= NEW_AIRPORT_OFFSET && !as->enabled) { + if (_airport_mngr.GetGRFID(type) == 0) return as; byte subst_id = _airport_mngr.GetSubstituteID(type); if (subst_id == AT_INVALID) return as; as = &AirportSpec::specs[subst_id];