summaryrefslogtreecommitdiff
path: root/aircraft_cmd.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-05-01 11:27:39 +0000
committerpeter1138 <peter1138@openttd.org>2006-05-01 11:27:39 +0000
commitc6d48f9235213f8ea02bf7568806a8b710127829 (patch)
treef9b79e6bc23b89c636bd561a097b8f9bc78d971c /aircraft_cmd.c
parent7d2108518b65c8992739b940debd29b2a3bb6be1 (diff)
downloadopenttd-c6d48f9235213f8ea02bf7568806a8b710127829.tar.xz
(svn r4642) - Codechange: reorganise airport.h and airport_movement.h to avoid having 8 copies of the airport FTAs, and make the enums used available elsewhere.
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) {