From 47acfe1cf6cbea8e165c9ab447bc615060747ce2 Mon Sep 17 00:00:00 2001 From: Inga Date: Sat, 9 Dec 2023 01:01:40 +0000 Subject: [PATCH] fixed another bug --- day08-hard/src/main.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/day08-hard/src/main.zig b/day08-hard/src/main.zig index e801574..7f10cad 100644 --- a/day08-hard/src/main.zig +++ b/day08-hard/src/main.zig @@ -104,7 +104,7 @@ const TransitionMap = [MAX_DIRECTIONS * 1024]u32; fn createTransitions(nodes: *const Nodes, directions: *const Directions) TransitionMap { var result = std.mem.zeroes(TransitionMap); for (nodes.*) |node| { - if (node.current_label == 0) { + if (node.line_index == 0) { continue; }