From 35f868768b6102f9c172667d50ce37f0b9be5f30 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Fri, 17 Apr 2020 18:56:15 -0400 Subject: [PATCH] Fix --- commands/random-seed/ship.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/random-seed/ship.js b/commands/random-seed/ship.js index 1f239a4d..cdf4469f 100644 --- a/commands/random-seed/ship.js +++ b/commands/random-seed/ship.js @@ -105,7 +105,8 @@ module.exports = class ShipCommand extends Command { } percentColor(pct) { - for (let i = 1; i < percentColors.length - 1; i++) { + let i = 1; + for (i; i < percentColors.length - 1; i++) { if (pct < percentColors[i].pct) { break; }