This commit is contained in:
shoopea 2020-04-18 16:09:05 +08:00
parent 56854d758e
commit 3a7d947480

View File

@ -389,11 +389,13 @@ func loadObjItem() error {
for _, i := range cacheObjItem {
if objItems[i].ObjID64 == 0 {
id, _ := addObjItem(objItems[i].Code, objItems[i].Names[0], objItems[i].ItemTypeID, objItems[i].Weight, objItems[i].Exchange, objItems[i].Auction, objItems[i].Craftable)
id, err := addObjItem(objItems[i].Code, objItems[i].Names[0], objItems[i].ItemTypeID, objItems[i].Weight, objItems[i].Exchange, objItems[i].Auction, objItems[i].Craftable)
logOnError(err, "loadObjItem : addObjItem")
objItems[i].ObjID64 = id
cacheObjItemId[id] = i
for _, n := range objItems[i].Names {
objAddName(id, n)
err = objAddName(id, n)
logOnError(err, "loadObjItem : objAddName")
cacheObjItem[n] = id
}
}