From 9c056126f205db3d889dd100bf03efba08a2c535 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Tue, 6 Jun 2023 17:47:42 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E8=8B=B1=E9=9B=84=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= 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 3e251098f..13d3b7d07 100644 --- a/modules/hero/module.go +++ b/modules/hero/module.go @@ -119,7 +119,7 @@ func (this *Hero) createRepeatHero(session comm.IUserSession, heroCfgId string, // 获取英雄 func (this *Hero) GetHeroByObjID(uid, heroId string) (hero *pb.DBHero, errdata *pb.ErrorData) { hero = this.modelHero.getOneHero(uid, heroId) - if hero != nil { + if hero == nil { errdata = &pb.ErrorData{ Code: pb.ErrorCode_HeroNoExist, Title: pb.ErrorCode_HeroNoExist.ToString(),