diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 58ffc5ef30..0bb5ff0b9f 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -56,6 +56,9 @@ bool IsHangar(TileIndex t) { assert(IsTileType(t, MP_STATION)); + /* If the tile isn't an airport there's no chance it's a hangar. */ + if (!IsAirport(t)) return false; + const Station *st = Station::GetByTile(t); const AirportFTAClass *apc = st->Airport();