diff options
author | truelight <truelight@openttd.org> | 2005-04-02 10:38:31 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2005-04-02 10:38:31 +0000 |
commit | 5a527daac951515c53a94ea4fb26d5b737dc264d (patch) | |
tree | 2bb637e0ebf36abd8b06639bf93ba4a0c7ad16e3 /aystar.c | |
parent | 1d0e0b22e439d95aebf370197e52a02c273db47f (diff) | |
download | openttd-5a527daac951515c53a94ea4fb26d5b737dc264d.tar.xz |
(svn r2121) -Fix: changed the 2nd param of AyStar_EndNodeCheck back to what it should be
Diffstat (limited to 'aystar.c')
-rw-r--r-- | aystar.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -146,7 +146,7 @@ int AyStarMain_Loop(AyStar *aystar) { if (current == NULL) return AYSTAR_EMPTY_OPENLIST; // Check for end node and if found, return that code - if (aystar->EndNodeCheck(aystar, ¤t->path.node) == AYSTAR_FOUND_END_NODE) { + if (aystar->EndNodeCheck(aystar, current) == AYSTAR_FOUND_END_NODE) { if (aystar->FoundEndNode != NULL) aystar->FoundEndNode(aystar, current); free(current); |