summaryrefslogtreecommitdiff
path: root/src/station.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/station.h')
-rw-r--r--src/station.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/station.h b/src/station.h
index 6d89280aa..6ec5777c6 100644
--- a/src/station.h
+++ b/src/station.h
@@ -3,6 +3,7 @@
#ifndef STATION_H
#define STATION_H
+#include "airport.h"
#include "player.h"
#include "oldpool.h"
#include "sprite.h"
@@ -112,6 +113,12 @@ struct Station {
return type == RoadStop::BUS ? bus_stops : truck_stops;
}
+ const AirportFTAClass *Airport() const
+ {
+ assert(airport_tile != 0);
+ return GetAirport(airport_type);
+ }
+
TileIndex xy;
RoadStop *bus_stops;
RoadStop *truck_stops;