Fix clear arena tags not working properly
parent
62b6157426
commit
6886108ee8
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue