diff --git a/obj.go b/obj.go index a0ceda5..296cb4c 100644 --- a/obj.go +++ b/obj.go @@ -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 }