diff options
author | tron <tron@openttd.org> | 2005-02-07 18:51:46 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-02-07 18:51:46 +0000 |
commit | 4867f6b234d93452908b9ae1e4805e22a40f9559 (patch) | |
tree | 3679c4ad053259eb3a697c93e50644a3de7bbe28 | |
parent | 0e6109d360ba0ed7f59f93d1e01426e57df3ed1e (diff) | |
download | openttd-4867f6b234d93452908b9ae1e4805e22a40f9559.tar.xz |
(svn r1842) Fix another typo made in r1834
-rw-r--r-- | npf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)); } |