Skip to content

Commit

Permalink
missing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Sep 13, 2024
1 parent cfe3a2b commit 1723ad7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/gg/path_finding_algorithm_visualizer/aStar.v
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ fn astar_path_finding(mut app App, mut grid [][]Cell, start Point, end Point) {
if temp_g_score < g_score[neighbor.x][neighbor.y] {
g_score[neighbor.x][neighbor.y] = temp_g_score
if !(neighbor.x == start.x && neighbor.y == start.y) {
priority_queue.insert(&Node{
priority_queue.insert(Node{
f_score: g_score[neighbor.x][neighbor.y] + hf(neighbor, end)
cell: neighbor
count: curr_node.count + 1
Expand Down

0 comments on commit 1723ad7

Please sign in to comment.