From 47a747650b3a1c90607fd4ce79d3da17e0f1ce1b Mon Sep 17 00:00:00 2001 From: Inga Date: Sat, 9 Dec 2023 00:57:33 +0000 Subject: [PATCH] day 8, part 2 (fixed) --- 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 62b9f35..e801574 100644 --- a/day08-hard/src/main.zig +++ b/day08-hard/src/main.zig @@ -133,7 +133,7 @@ fn getStartingNodes(nodes: *const Nodes) CurrentNodes { var starting_nodes = std.mem.zeroes(CurrentNodes); var current_index: usize = 0; for (nodes.*) |node| { - if (node.current_label != 0 and node.current_label & FIVE_BITS == 0) { + if (node.line_index != 0 and node.current_label & FIVE_BITS == 0) { if (current_index == 0) { for (&starting_nodes) |*starting_node| { starting_node.* = node.line_index;