diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2024-10-13 10:13:38 +0200 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2024-10-13 10:13:38 +0200 |
commit | 25531d817bf6d6ef282855f44a64cd172d0bc2ec (patch) | |
tree | 48ac6aecd384bd390a3f4517cd3b058f48d7dfbb | |
parent | 308fdacff058fe76e9a7cafd05d9f34658645c2a (diff) | |
download | reduced_system_layer-25531d817bf6d6ef282855f44a64cd172d0bc2ec.zip |
Fixes in graph example
-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; } |