(svn r2121) -Fix: changed the 2nd param of AyStar_EndNodeCheck back to what it should be

This commit is contained in:
truelight
2005-04-02 10:38:31 +00:00
parent 1d0e0b22e4
commit 5a527daac9
4 changed files with 23 additions and 16 deletions

View File

@@ -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);