summaryrefslogtreecommitdiff
path: root/src/newgrf_airport.h
diff options
context:
space:
mode:
authorPeterN <peter@fuzzle.org>2019-03-30 22:20:26 +0000
committerGitHub <noreply@github.com>2019-03-30 22:20:26 +0000
commite1069eee05b648a64ff5dac3dd5701b01cfa2034 (patch)
tree019da19b2cc4b98fc7fb0f09e1738db17fe8a307 /src/newgrf_airport.h
parent32fda83d3916197a46215c83ddd85b2e50128a02 (diff)
downloadopenttd-e1069eee05b648a64ff5dac3dd5701b01cfa2034.tar.xz
Codechange: Check airport layout would fit within map bounds before iterating tiles. (#7429)
Diffstat (limited to 'src/newgrf_airport.h')
-rw-r--r--src/newgrf_airport.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/newgrf_airport.h b/src/newgrf_airport.h
index 867362e9a..7b752e741 100644
--- a/src/newgrf_airport.h
+++ b/src/newgrf_airport.h
@@ -123,6 +123,7 @@ struct AirportSpec {
static AirportSpec *GetWithoutOverride(byte type);
bool IsAvailable() const;
+ bool IsWithinMapBounds(byte table, TileIndex index) const;
static void ResetAirports();