(svn r1842) Fix another typo made in r1834
authortron
Mon, 07 Feb 2005 18:51:46 +0000
changeset 1338 82951b57204a
parent 1337 2b3a3d5aec2a
child 1339 40e00c692996
(svn r1842) Fix another typo made in r1834
npf.c
--- a/npf.c	Mon Feb 07 12:47:29 2005 +0000
+++ b/npf.c	Mon Feb 07 18:51:46 2005 +0000
@@ -621,7 +621,7 @@
 	FOR_ALL_DEPOTS(depot) {
 		/* Check if this is really a valid depot, it is of the needed type and
 		 * owner */
-		if (IsValidDepot(depot) && IsTileDepotType(depot->xy, tiletype) && IsTileOwner(depot->xy, owner))
+		if (IsValidDepot(depot) && IsTileDepotType(depot->xy, type) && IsTileOwner(depot->xy, owner))
 			/* If so, let's add it to the queue, sorted by distance */
 			depots.push(&depots, depot, DistanceManhattan(tile, depot->xy));
 	}