From 2e8e91385ec7104c9b8478bdf09d355d67c356eb Mon Sep 17 00:00:00 2001 From: Dev Date: Thu, 15 Aug 2024 11:10:50 +0100 Subject: [PATCH] Fixed bad variable use (cherry picked from commit daf70ea67fb6b2899c5f6db1abdc32064fb6dc06) --- project/src/generators/RepeatableQuestGenerator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/src/generators/RepeatableQuestGenerator.ts b/project/src/generators/RepeatableQuestGenerator.ts index 74cb199b..6176c8bf 100644 --- a/project/src/generators/RepeatableQuestGenerator.ts +++ b/project/src/generators/RepeatableQuestGenerator.ts @@ -524,7 +524,7 @@ export class RepeatableQuestGenerator { let chosenItemIndex = this.randomUtil.randInt(itemSelection.length); let found = false; - for (let i = 0; i < this.maxRandomNumberAttempts; i++) { + for (let j = 0; j < this.maxRandomNumberAttempts; j++) { if (usedItemIndexes.has(chosenItemIndex)) { chosenItemIndex = this.randomUtil.randInt(itemSelection.length); } else {