summaryrefslogtreecommitdiff
path: root/src/newgrf_airport.h
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-03-05 23:21:23 +0000
committeryexo <yexo@openttd.org>2010-03-05 23:21:23 +0000
commit664934e6f6c24aa63b0bd3b3e4a0333eab53d612 (patch)
tree3db50490dede46651b27580983401f48150ce5a8 /src/newgrf_airport.h
parent308781664b6b316f6f13822d292f3c5c787d62c9 (diff)
downloadopenttd-664934e6f6c24aa63b0bd3b3e4a0333eab53d612.tar.xz
(svn r19323) -Codechange: copy the AirportSpec original array to an internal array in AirportSpec
Diffstat (limited to 'src/newgrf_airport.h')
-rw-r--r--src/newgrf_airport.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/newgrf_airport.h b/src/newgrf_airport.h
index 4876418de..ae72a3e94 100644
--- a/src/newgrf_airport.h
+++ b/src/newgrf_airport.h
@@ -50,8 +50,13 @@ struct AirportSpec {
bool IsAvailable() const;
+ static void ResetAirports();
+
static AirportSpec dummy;
static AirportSpec oilrig;
+
+private:
+ static AirportSpec specs[NUM_AIRPORTS];
};