diff options
-rwxr-xr-x | examples/graph.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/graph.c b/examples/graph.c index 86ff9f3..037635f 100755 --- a/examples/graph.c +++ b/examples/graph.c @@ -422,7 +422,6 @@ i32 main(i32 argc, c8 **argv) { } if (platform.key_pressed['1']) { - for (i64 i = 0; i < MAX_NUM_NODES; ++i) if (world.nodes[i].enabled && world.nodes[i].hover) { path_src = i; @@ -452,7 +451,7 @@ i32 main(i32 argc, c8 **argv) { if (world.nodes[i].enabled && world.nodes[i].hover) { adding_edge = 1; adding_src = i; - adding_src = i; + adding_dst = i; break; } |