Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't find a path after a few search #44

Open
wallpap3r opened this issue Jul 1, 2015 · 3 comments
Open

Can't find a path after a few search #44

wallpap3r opened this issue Jul 1, 2015 · 3 comments

Comments

@wallpap3r
Copy link

currentNode.closed = true
and didn't make it dirty so that when a new search begins, the function Graph.cleanDirty() may not reset the closed node, and finally it will result in no valid path

do a search and choose a nearby node for new target can easily reproduce it.

I added graph.makeDirty(currentNode) to fix it, but I didn't test it for a full round

@wibimaster
Copy link

+1

1 similar comment
@bibodha
Copy link

bibodha commented Aug 6, 2015

+1

@manthrax
Copy link

manthrax commented Jun 26, 2016

I figured out that bug I think. The "closed" nodes aren't getting cleaned properly between searches.
Look here for a fix:

#52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants