summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--station_cmd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/station_cmd.c b/station_cmd.c
index 977693a9a..4ce56ea54 100644
--- a/station_cmd.c
+++ b/station_cmd.c
@@ -1682,8 +1682,7 @@ END_TILE_LOOP(tile_cur, w,h,tile)
uint i;
for (i = 0; i < afc->nof_depots; ++i)
- DeleteWindowById(WC_VEHICLE_DEPOT,
- tile + GetAirport(st->airport_type)->airport_depots[i]);
+ DeleteWindowById(WC_VEHICLE_DEPOT, tile + afc->airport_depots[i]);
st->airport_tile = 0;
st->facilities &= ~FACIL_AIRPORT;