From be840ccd005795a5c80fee946fa1bd8621a8e479 Mon Sep 17 00:00:00 2001 From: tron Date: Mon, 7 Feb 2005 18:51:46 +0000 Subject: [PATCH] (svn r1842) Fix another typo made in r1834 --- npf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npf.c b/npf.c index 965a0a9191..f9e041c01a 100644 --- a/npf.c +++ b/npf.c @@ -621,7 +621,7 @@ NPFFoundTargetData NPFRouteToDepotTrialError(TileIndex tile, byte trackdir, Tran 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)); }