Fix clear arena tags not working properly

pull/16/head
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 { removeAllTags(): void {
for (let t of this.tags) { while (this.tags.length) {
t.onRemove(this); this.tags[0].onRemove(this);
this.tags.splice(this.tags.indexOf(t), 1); this.tags.splice(0, 1);
} }
} }