diff --git a/shared/domain/roleField/hero.ts b/shared/domain/roleField/hero.ts index 4c432a41f..cf82ac277 100644 --- a/shared/domain/roleField/hero.ts +++ b/shared/domain/roleField/hero.ts @@ -64,11 +64,12 @@ export class HeroParam { skins: HeroSKinParam[] = []; // 皮肤 ePlace: EPlace[]; // 武将装备引用数组 - talent: Talent[]; - usedTalentPoint: number; - totalTalentPoint: number; + talent: Talent[] = []; + usedTalentPoint: number = 0; + totalTalentPoint: number = 0; constructor(hero: HeroType) { + this.seqId = hero.seqId; this.hid = hero.hid; this.hName = hero.hName; this.exp = hero.exp;