fix some remove
This commit is contained in:
parent
bc22e8b103
commit
4734d47bcc
|
@ -27566,7 +27566,8 @@
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
for(var i in this.forbiddenSkills){
|
for(var i in this.forbiddenSkills){
|
||||||
if(this.forbiddenSkills[i].remove(skill)){
|
if(this.forbiddenSkills[i].includes(skill)){
|
||||||
|
this.forbiddenSkills[i].remove(skill)
|
||||||
if(!this.forbiddenSkills[i].length){
|
if(!this.forbiddenSkills[i].length){
|
||||||
delete this.forbiddenSkills[i];
|
delete this.forbiddenSkills[i];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue