summaryrefslogtreecommitdiff
path: root/aircraft_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'aircraft_cmd.c')
-rw-r--r--aircraft_cmd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/aircraft_cmd.c b/aircraft_cmd.c
index fbe131399..6aaf33fda 100644
--- a/aircraft_cmd.c
+++ b/aircraft_cmd.c
@@ -772,8 +772,7 @@ static bool AircraftController(Vehicle *v)
}
// get airport moving data
- assert(v->u.air.pos < GetAirport(st->airport_type)->nofelements);
- amd = &_airport_moving_datas[st->airport_type][v->u.air.pos];
+ amd = GetAirportMovingData(st->airport_type, v->u.air.pos);
// Helicopter raise
if (amd->flag & AMED_HELI_RAISE) {