--- a/aircraft_cmd.c Fri Dec 17 23:32:54 2004 +0000
+++ b/aircraft_cmd.c Sat Dec 18 12:19:04 2004 +0000
@@ -218,8 +218,7 @@
byte i = 0;
st = DEREF_STATION(_map2[tile]);
Airport = GetAirport(st->airport_type);
- // first element of depot array contains #of depots on the airport
- for (cur_depot=&Airport->airport_depots[1]; i != Airport->airport_depots[0]; cur_depot++) {
+ for (cur_depot = Airport->airport_depots; i != Airport->nof_depots; cur_depot++) {
if ((uint)(st->airport_tile + *cur_depot) == tile) {
assert(Airport->layout[i].heading == HANGAR);
v->u.air.pos = Airport->layout[i].position;