# HG changeset patch # User tron # Date 2005-02-07 18:51:46 # Node ID 3dbc05775dfa2e87afd48be171f692c5a5167a8b # Parent f65714b3e4388a771c6123b17656a9071466b1e5 (svn r1842) Fix another typo made in r1834 diff --git a/npf.c b/npf.c --- a/npf.c +++ b/npf.c @@ -621,7 +621,7 @@ NPFFoundTargetData NPFRouteToDepotTrialE 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)); }