From 89da553e582fc65c0d1e1007216e6ac5c1d6e8a4 Mon Sep 17 00:00:00 2001 From: Nat Lasseter Date: Thu, 21 Dec 2017 00:56:21 +0000 Subject: Fixed, DUHDOI. --- day18/part2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/day18/part2 b/day18/part2 index 8a930dc..862e5ce 100755 --- a/day18/part2 +++ b/day18/part2 @@ -28,7 +28,6 @@ loop do case istr[0] when 'snd' q1 << valof(reg0, istr[1]) - count += 1 when 'set' reg0[istr[1]] = valof(reg0, istr[2]) when 'add' @@ -57,6 +56,7 @@ loop do case istr[0] when 'snd' q0 << valof(reg1, istr[1]) + count += 1 when 'set' reg1[istr[1]] = valof(reg1, istr[2]) when 'add' -- cgit v1.2.3