map 初始化

This commit is contained in:
meixiongfeng 2023-02-06 16:35:34 +08:00
parent 3f9eace9d8
commit 1086ab6eec

View File

@ -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: