From 1086ab6eec610444688a605aff49ba9007b16711 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Mon, 6 Feb 2023 16:35:34 +0800 Subject: [PATCH] =?UTF-8?q?map=20=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/modulebase.go | 2 ++ 1 file changed, 2 insertions(+) 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: