(svn r1161) Don't make redundant GetAirport() calls, use the cached value
authortron
Sat, 18 Dec 2004 18:19:49 +0000
changeset 709 14af26156083
parent 708 c456ebed2d8a
child 710 2a13862fe86b
(svn r1161) Don't make redundant GetAirport() calls, use the cached value
station_cmd.c
--- a/station_cmd.c	Sat Dec 18 18:13:37 2004 +0000
+++ b/station_cmd.c	Sat Dec 18 18:19:49 2004 +0000
@@ -1682,8 +1682,7 @@
 		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;