Fix group removal

This commit is contained in:
Cohee 2024-05-05 01:08:49 +03:00
parent 39a54d158d
commit 75832c1ad6

View File

@ -2566,9 +2566,9 @@ function filterGroupsByScoring(groups, buffer, removeEntry) {
if (scores[i] < maxScore) { if (scores[i] < maxScore) {
console.debug(`Removing score loser from inclusion group '${key}' entry '${group[i].uid}'`, group[i]); console.debug(`Removing score loser from inclusion group '${key}' entry '${group[i].uid}'`, group[i]);
removeEntry(group[i]);
group.splice(i, 1); group.splice(i, 1);
scores.splice(i, 1); scores.splice(i, 1);
removeEntry(group[i]);
i--; i--;
} }
} }