Error maxxing
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user