Fix clear arena tags not working properly
This commit is contained in:
1 parent
62b6157426
commit
6886108ee8
1 file changed
+3
-3
+3
-3
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user