summaryrefslogtreecommitdiff
path: root/src/aircraft_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/aircraft_cmd.cpp')
-rw-r--r--src/aircraft_cmd.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp
index 7ab5a6185..a4b0ad68f 100644
--- a/src/aircraft_cmd.cpp
+++ b/src/aircraft_cmd.cpp
@@ -916,7 +916,6 @@ static byte GetAircraftFlyingAltitude(const Vehicle *v)
static bool AircraftController(Vehicle *v)
{
Station *st;
- const AirportMovingData *amd;
Vehicle *u;
byte z, maxz, curz;
Direction newdir;
@@ -937,7 +936,7 @@ static bool AircraftController(Vehicle *v)
}
// get airport moving data
- amd = GetAirportMovingData(st->airport_type, v->u.air.pos);
+ const AirportMovingData *amd = GetAirport(st->airport_type)->MovingData(v->u.air.pos);
// Helicopter raise
if (amd->flag & AMED_HELI_RAISE) {