This commit is contained in:
shoopea 2019-06-25 19:13:53 +08:00
parent cec19fdfbe
commit d01ebb2393

View File

@ -8,7 +8,8 @@ func reloadObjItem(code string, name string, itemTypeID64 int64, weight int) {
var objID64 int64 var objID64 int64
objID64 = silentGetObjItemID(code, ``) objID64 = silentGetObjItemID(code, ``)
if objID64 == 0 { if objID64 == 0 {
objID64, err = addObjItem(code, name, itemTypeID64, weight) id, err = addObjItem(code, name, itemTypeID64, weight)
objID64 = id
logOnError(err, "reloadObjItem : addObjItem") logOnError(err, "reloadObjItem : addObjItem")
} }
if silentGetObjItemID(``, name) == 0 { if silentGetObjItemID(``, name) == 0 {