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

bugfix #7

Open
ClubEdNZ opened this issue Dec 10, 2024 · 1 comment
Open

bugfix #7

ClubEdNZ opened this issue Dec 10, 2024 · 1 comment

Comments

@ClubEdNZ
Copy link

Sorry I can't tell you how to reliably replicate it, because I had an intermittent issue, & only sometimes when I did something wrong in my level designer, but adding a check at the end of fetch_path fixed it:

the final return in fetch path I altered to check that the from_id was found at all:
return pathfinder_cache[from_id] and pathfinder_cache[from_id][to_id]

[thanks for defgraph, btw, I love it!]

@dev-masih
Copy link
Owner

Thank you for using DefGraph! I warmly welcome you to submit a pull request regarding this issue. After all, there's no harm in verifying whether the value exists

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

2 participants