Skip to content
Snippets Groups Projects
Commit 7f983661 authored by Erik Nygren's avatar Erik Nygren :bullettrain_front:
Browse files

added safety breaks in loops to prevent infinite loops.

parent cb1980f8
No related branches found
No related tags found
No related merge requests found
...@@ -103,5 +103,4 @@ def a_star(rail_trans, rail_array, start, end): ...@@ -103,5 +103,4 @@ def a_star(rail_trans, rail_array, start, end):
# no full path found # no full path found
if len(open_nodes) == 0: if len(open_nodes) == 0:
print("could not make path")
return [] return []
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment