Fixed bad variable use
(cherry picked from commit daf70ea67fb6b2899c5f6db1abdc32064fb6dc06)
This commit is contained in:
parent
37fb49bffa
commit
2e8e91385e
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user