map 初始化
This commit is contained in:
parent
3f9eace9d8
commit
1086ab6eec
@ -242,6 +242,8 @@ func (this *ModuleBase) CheckRes(session comm.IUserSession, res []*cfg.Gameatn)
|
|||||||
items map[string]int32 // 道具背包 批量处理
|
items map[string]int32 // 道具背包 批量处理
|
||||||
attrs map[string]int32 // 属性
|
attrs map[string]int32 // 属性
|
||||||
)
|
)
|
||||||
|
items = make(map[string]int32, 0)
|
||||||
|
attrs = make(map[string]int32, 0)
|
||||||
for _, v := range res {
|
for _, v := range res {
|
||||||
switch v.A {
|
switch v.A {
|
||||||
case comm.AttrType:
|
case comm.AttrType:
|
||||||
|
Loading…
Reference in New Issue
Block a user