This commit is contained in:
shoopea 2020-01-12 20:18:44 +08:00
parent 74c72e90d4
commit ae41a8e84f

6
obj.go
View File

@ -763,8 +763,10 @@ func addObjItem(code string, name string, itemTypeID64 int64, weight int64, exch
return 0, nil
} else {
obj.Names = append(obj.Names, name)
cacheObjItem[name] = obj
cacheObjItem[code] = obj
for _, r := range obj.Names {
cacheObjItem[n] = obj
}
return obj.ObjID64, nil
}
@ -1056,8 +1058,6 @@ func loadObjItem() error {
}
}
resetObjItem()
return nil
}