diff --git a/modules/battle/module.go b/modules/battle/module.go index 273a8a7b8..da1c73ed6 100644 --- a/modules/battle/module.go +++ b/modules/battle/module.go @@ -196,6 +196,11 @@ func (this *Battle) CheckBattleReport(session comm.IUserSession, report *pb.Batt reply *pb.BattleCheckResults err error ) + if report == nil { + iswin = false + return + } + if this.options.OpenCheck { stime := time.Now() if reply, err = this.clients.CheckBattle(context.Background(), report); err != nil || !reply.Ischeck {