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 {