diff --git a/obj.go b/obj.go index 296cb4c..2e130b6 100644 --- a/obj.go +++ b/obj.go @@ -493,7 +493,7 @@ func addObjItem(code string, name string, itemTypeID64 int64, weight int) (int64 c.Code = code c.Name = name c.Weight = weight - cacheObjItem.Store(intl_id, *c) + cacheObjItem.Store(code, *c) cacheObjItem.Store(name, *c) return objId, nil