From 200c556a51f05e6835eb296aa2664edb061b33a3 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Fri, 22 Jan 2021 21:31:49 -0500 Subject: [PATCH] Fix infinite loop --- commands/games-mp/nim.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/games-mp/nim.js b/commands/games-mp/nim.js index 4e078a09..41569a9a 100644 --- a/commands/games-mp/nim.js +++ b/commands/games-mp/nim.js @@ -202,6 +202,7 @@ module.exports = class NimCommand extends Command { let finalValues = null; while (keepGoing) { if (board[i] === 0) { + i++; continue; } else { board[i] -= 1;