fixed another bug

main
Inga 🏳‍🌈 1 year ago
parent a04e5fa335
commit 47acfe1cf6
  1. 2
      day08-hard/src/main.zig

@ -104,7 +104,7 @@ const TransitionMap = [MAX_DIRECTIONS * 1024]u32;
fn createTransitions(nodes: *const Nodes, directions: *const Directions) TransitionMap { fn createTransitions(nodes: *const Nodes, directions: *const Directions) TransitionMap {
var result = std.mem.zeroes(TransitionMap); var result = std.mem.zeroes(TransitionMap);
for (nodes.*) |node| { for (nodes.*) |node| {
if (node.current_label == 0) { if (node.line_index == 0) {
continue; continue;
} }

Loading…
Cancel
Save