Fix clear arena tags not working properly

This commit is contained in:
Flashfyre 2024-03-04 23:22:22 -05:00
parent 62b6157426
commit 6886108ee8
1 changed files with 3 additions and 3 deletions

View File

@ -434,9 +434,9 @@ export class Arena {
}
removeAllTags(): void {
for (let t of this.tags) {
t.onRemove(this);
this.tags.splice(this.tags.indexOf(t), 1);
while (this.tags.length) {
this.tags[0].onRemove(this);
this.tags.splice(0, 1);
}
}