diff --git a/modules/hero/module.go b/modules/hero/module.go index 7d9372c1f..10d324d9c 100644 --- a/modules/hero/module.go +++ b/modules/hero/module.go @@ -929,7 +929,7 @@ func (this *Hero) PassonHero(session comm.IUserSession, heroObjID map[string]boo // 构建一个虚拟等级的英雄 func (this *Hero) GetVirtualHero(hero *pb.DBHero, lv int32) (vHero *pb.DBHero) { - if vHero == nil || lv <= 0 { + if hero == nil || lv <= 0 { return nil } hero.Lv = lv