From 2d027c610f74456ff9c51c38d60decd709b175a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=AB=E8=B0=B7=E5=89=91=E4=BB=99?= Date: Mon, 28 Sep 2020 02:57:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BB=A5=E5=89=8D=E8=80=81UR?= =?UTF-8?q?L=E7=9A=84=E4=B8=80=E4=BA=9B=E5=A5=87=E6=80=AA=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.js b/script.js index 00e59a92..7821afd7 100644 --- a/script.js +++ b/script.js @@ -110,7 +110,7 @@ Member.prototype.loadObj = function(m, dataVersion) { } if (!(this.plus instanceof Array)) this.plus = [0, 0, 0]; //如果加值不是数组,则改变 this.latent = dataVersion > 1 ? m[4] : m.latent; - if (this.latent && dataVersion <= 2) this.latent = this.latent.map(l => l >= 13 ? l + 3 : l); //修复以前自己编的潜觉编号为官方编号 + if (this.latent instanceof Array && dataVersion <= 2) this.latent = this.latent.map(l => l >= 13 ? l + 3 : l); //修复以前自己编的潜觉编号为官方编号 if (!(this.latent instanceof Array)) this.latent = []; //如果潜觉不是数组,则改变 this.sawoken = dataVersion > 1 ? m[5] : m.sawoken; this.skilllevel = m[6] || null;