This commit is contained in:
shoopea 2019-06-02 21:30:18 +08:00
parent f23eeec590
commit e91ba0e6e6

9
obj.go
View File

@ -487,6 +487,15 @@ func addObjItem(code string, name string, itemTypeID64 int64, weight int) (int64
if err != nil {
return 0, err
}
c := new(ChatWarsItem)
c.ObjID64 = objId
c.Code = code
c.Name = name
c.Weight = weight
cacheObjItem.Store(intl_id, *c)
cacheObjItem.Store(name, *c)
return objId, nil
}