From 50032961460ed0426c909da635d7ba0d17a6e7c1 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Wed, 14 Jun 2017 01:47:58 +0000 Subject: [PATCH] Ouch --- commands/games/hangman.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/games/hangman.js b/commands/games/hangman.js index b998ed72..99914e1a 100644 --- a/commands/games/hangman.js +++ b/commands/games/hangman.js @@ -47,7 +47,7 @@ module.exports = class HangmanCommand extends Command { await msg.say('Nice job!'); confirmation.push(choice); let results = word.split(''); - for (let i = 0; i > results.length; i++) { + for (let i = 0; i < word.length; i++) { if (word[i] === choice) { results[i] = ''; display[i] = word[i];