Codechange: Check airport layout would fit within map bounds before iterating tiles. (#7429)

This commit is contained in:
PeterN
2019-03-30 22:20:26 +00:00
committed by GitHub
parent 32fda83d39
commit e1069eee05
4 changed files with 25 additions and 1 deletions

View File

@@ -123,6 +123,7 @@ struct AirportSpec {
static AirportSpec *GetWithoutOverride(byte type);
bool IsAvailable() const;
bool IsWithinMapBounds(byte table, TileIndex index) const;
static void ResetAirports();