diff --git a/game-server/app/services/role/calCe.ts b/game-server/app/services/role/calCe.ts index 9c1334e25..7a8a8746c 100644 --- a/game-server/app/services/role/calCe.ts +++ b/game-server/app/services/role/calCe.ts @@ -643,7 +643,7 @@ class CalCeData { this.schoolAttrsByAttrId.set(attrId, []); } this.schoolAttrsByAttrId.get(attrId).push(key); - if(!this.schoolAttrsByHid.has(attrId)) { + if(!this.schoolAttrsByHid.has(hid)) { this.schoolAttrsByHid.set(hid, []); } this.schoolAttrsByHid.get(hid).push(key); @@ -684,7 +684,7 @@ class CalCeData { this.scrollAttrsByAttrId.set(attrId, []); } this.scrollAttrsByAttrId.get(attrId).push(key); - if(!this.scrollAttrsByHid.has(attrId)) { + if(!this.scrollAttrsByHid.has(hid)) { this.scrollAttrsByHid.set(hid, []); } this.scrollAttrsByHid.get(hid).push(key);