Error maxxing

This commit is contained in:
2026-04-27 09:52:31 +02:00
parent 620d3b56e0
commit 205c630dbf
4 changed files with 9 additions and 7 deletions

View File

@@ -12,7 +12,7 @@ get_path_to_destination :: proc(self: ^Simulator, source: u32, destination: u32)
}
// Returns if path is reachable from node => destination
get_destination_reachable :: proc(self: ^Simulator, node_to_search: u32, destination: u32, nodes_to_ignore: ^[]u32) -> bool {
get_destination_reachable :: proc(self: ^Simulator, node_to_search: u32, destination: u32, nodes_to_ignore: ^[dynamic]u32) -> bool {
if !self.nodes[node_to_search].enabled || common.list_contains(nodes_to_ignore[:], node_to_search) do return false
append(nodes_to_ignore, node_to_search)