summaryrefslogtreecommitdiff
path: root/aystar.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-04-02 10:38:31 +0000
committertruelight <truelight@openttd.org>2005-04-02 10:38:31 +0000
commit31775258710f7e40db2a4612c5d566b5ca6d2c15 (patch)
tree2bb637e0ebf36abd8b06639bf93ba4a0c7ad16e3 /aystar.c
parent333376cb6a88a311b66cfb7442d9f6bf952f3b39 (diff)
downloadopenttd-31775258710f7e40db2a4612c5d566b5ca6d2c15.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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/aystar.c b/aystar.c
index 4ed9058b8..22d4ba813 100644
--- a/aystar.c
+++ b/aystar.c
@@ -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, &current->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);