diff --git a/2017/day-18/solution.lua b/2017/day-18/solution.lua index 8ee8b90..b239524 100755 --- a/2017/day-18/solution.lua +++ b/2017/day-18/solution.lua @@ -117,7 +117,7 @@ end while true do instr = instructions[iptr[pid]] - if waiting[0] and waiting[1] then + if waiting[pid] then print("Deadlocked!") break end