Fix group removal

This commit is contained in:
Cohee 2024-05-05 01:08:49 +03:00
parent 39a54d158d
commit 75832c1ad6
1 changed files with 1 additions and 1 deletions

View File

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