diff --git a/modules/modulebase.go b/modules/modulebase.go index 5b96bfeb7..9d0008fff 100644 --- a/modules/modulebase.go +++ b/modules/modulebase.go @@ -242,6 +242,8 @@ func (this *ModuleBase) CheckRes(session comm.IUserSession, res []*cfg.Gameatn) items map[string]int32 // 道具背包 批量处理 attrs map[string]int32 // 属性 ) + items = make(map[string]int32, 0) + attrs = make(map[string]int32, 0) for _, v := range res { switch v.A { case comm.AttrType: