diff --git a/game/game.js b/game/game.js index 7ddfb6cb8..a4fd02871 100644 --- a/game/game.js +++ b/game/game.js @@ -9022,7 +9022,12 @@ new Promise(resolve=>{ writable:true, value:function(){ for(const item of arguments){ - const pos=this.indexOf(item); + let pos=-1; + if (typeof item=='number'&&isNaN(item)){ + pos=this.findIndex(v=>isNaN(v)) + }else{ + pos=this.indexOf(item); + } if(pos==-1) continue; this.splice(pos,1); }