diff --git a/commands/games-mp/connect-four.js b/commands/games-mp/connect-four.js index 14502478..0e00b912 100644 --- a/commands/games-mp/connect-four.js +++ b/commands/games-mp/connect-four.js @@ -94,8 +94,8 @@ module.exports = class ConnectFourCommand extends Command { if (res.author.id !== user.id) return false; const choice = res.content; if (choice.toLowerCase() === 'end') return true; - const i = Number.parseInt(choice, 10) - 1; - return board[colLevels[i]] && board[colLevels[i]][i] !== undefined; + const j = Number.parseInt(choice, 10) - 1; + return board[colLevels[j]] && board[colLevels[j]][j] !== undefined; }; const turn = await msg.channel.awaitMessages(pickFilter, { max: 1,