fixed loop break error
This commit is contained in:
parent
b55f7804e7
commit
dc6d72030c
3 changed files with 5 additions and 5 deletions
|
|
@ -504,9 +504,9 @@ function CheckExtendedCompletion(db) {
|
||||||
|
|
||||||
|
|
||||||
if (entries[entry].hasOwnProperty("disabled") && entries[entry].disabled === true) {
|
if (entries[entry].hasOwnProperty("disabled") && entries[entry].disabled === true) {
|
||||||
/* Do not substract a point for WD/GPZ Defeats nr if they were not added to Total in the first place */
|
/* Do not subtract a point for WD/GPZ Defeats nr if they were not added to Total in the first place */
|
||||||
if (entry === "greyPrinceDefeats" || entry === "whiteDefenderDefeats") {
|
if (entry === "greyPrinceDefeats" || entry === "whiteDefenderDefeats") {
|
||||||
break;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
intro.extendedCompletionTotal--;
|
intro.extendedCompletionTotal--;
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -588,9 +588,9 @@ function CheckExtendedCompletion(db) {
|
||||||
/* Skip disabled entries entirely from counting (substract a point from Total) */
|
/* Skip disabled entries entirely from counting (substract a point from Total) */
|
||||||
if (entries[entry].hasOwnProperty("disabled") && entries[entry].disabled === true) {
|
if (entries[entry].hasOwnProperty("disabled") && entries[entry].disabled === true) {
|
||||||
|
|
||||||
/* Do not substract a point for WD/GPZ Defeats nr if they were not added to Total in the first place */
|
/* Do not subtract a point for WD/GPZ Defeats nr if they were not added to Total in the first place */
|
||||||
if (entry === "greyPrinceDefeats" || entry === "whiteDefenderDefeats") {
|
if (entry === "greyPrinceDefeats" || entry === "whiteDefenderDefeats") {
|
||||||
break;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
intro.extendedCompletionTotal--;
|
intro.extendedCompletionTotal--;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue