From 29f8677fdacfad5c15f0e802a83f24338e8fe2c0 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Wed, 27 Sep 2023 10:06:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E8=8B=B1=E9=9B=84=E8=99=9A?= =?UTF-8?q?=E6=8B=9F=E7=AD=89=E7=BA=A7=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/hero/module.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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