debug
This commit is contained in:
parent
56854d758e
commit
3a7d947480
6
item.go
6
item.go
@ -389,11 +389,13 @@ func loadObjItem() error {
|
|||||||
|
|
||||||
for _, i := range cacheObjItem {
|
for _, i := range cacheObjItem {
|
||||||
if objItems[i].ObjID64 == 0 {
|
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
|
objItems[i].ObjID64 = id
|
||||||
cacheObjItemId[id] = i
|
cacheObjItemId[id] = i
|
||||||
for _, n := range objItems[i].Names {
|
for _, n := range objItems[i].Names {
|
||||||
objAddName(id, n)
|
err = objAddName(id, n)
|
||||||
|
logOnError(err, "loadObjItem : objAddName")
|
||||||
cacheObjItem[n] = id
|
cacheObjItem[n] = id
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user