Fixed bad variable use

(cherry picked from commit daf70ea67f)
This commit is contained in:
Dev 2024-08-15 11:10:50 +01:00
parent 37fb49bffa
commit 2e8e91385e

View File

@ -524,7 +524,7 @@ export class RepeatableQuestGenerator {
let chosenItemIndex = this.randomUtil.randInt(itemSelection.length); let chosenItemIndex = this.randomUtil.randInt(itemSelection.length);
let found = false; let found = false;
for (let i = 0; i < this.maxRandomNumberAttempts; i++) { for (let j = 0; j < this.maxRandomNumberAttempts; j++) {
if (usedItemIndexes.has(chosenItemIndex)) { if (usedItemIndexes.has(chosenItemIndex)) {
chosenItemIndex = this.randomUtil.randInt(itemSelection.length); chosenItemIndex = this.randomUtil.randInt(itemSelection.length);
} else { } else {