This commit is contained in:
shoopea 2020-01-12 21:25:06 +08:00
parent 8d86c3eb91
commit 5c47c3631a

6
obj.go
View File

@ -1016,15 +1016,15 @@ func loadObjItem2() error {
if i.ObjID64 == 0 {
id, err := addObjItem(i.Code, i.Names[0], i.ItemTypeID, i.Weight, i.Exchange, i.Auction)
i.ObjID64 = id
cacheObjItemId[id] = obj
cacheObjItemId[id] = i
count := 0
for _, n := range i.Names {
if count == 0 {
cacheObjItemId[n] = obj
cacheObjItemId[n] = i
continue
} else {
objAddName(id, n)
cacheObjItem[n] = obj
cacheObjItem[n] = i
}
}
}