竞技场防守阵容判断
This commit is contained in:
parent
6644a652ff
commit
8495f8ba01
@ -94,7 +94,9 @@ func (this *apiComp) Info(session comm.IUserSession, req *pb.ArenaInfoReq) (errd
|
||||
)
|
||||
ids = make([]string, len(info.Defend.Formt))
|
||||
for i, v := range info.Defend.Formt {
|
||||
ids[i] = v.Id
|
||||
if v != nil {
|
||||
ids[i] = v.Id
|
||||
}
|
||||
}
|
||||
if heros, err = this.module.modelArena.queryUserHeros(session.GetUserId(), ids); err != nil {
|
||||
errdata = &pb.ErrorData{
|
||||
|
Loading…
Reference in New Issue
Block a user