From e33a63ee8dd27aa59df6f5374dfeb677096e547e Mon Sep 17 00:00:00 2001 From: tron Date: Sat, 18 Dec 2004 18:19:49 +0000 Subject: [PATCH] (svn r1161) Don't make redundant GetAirport() calls, use the cached value --- station_cmd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/station_cmd.c b/station_cmd.c index 977693a9a7..4ce56ea544 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;