This commit is contained in:
shoopea 2020-01-26 14:52:04 +08:00
parent 1bee120fcf
commit 55339293b3

View File

@ -220,7 +220,7 @@ func loadObjItem() error {
log.Printf("loadObjItem : %s : duplicate code found. Belong to %s\n", objItems[id].Code, objItems[id].Names[0])
} else {
cacheObjItem[objItems[k].Code] = k
objItems[k].ItemTypeID = cacheObjSubType[i.ItemType]
objItems[k].ItemTypeID = cacheObjSubType[objItems[k].ItemType]
for _, n := range objItems[k].Names {
if id, ok := cacheObjItem[n]; ok {
@ -254,7 +254,7 @@ func loadObjItem() error {
if weight != obj.Weight {
log.Printf("loadObjItem : %s - %s : weight changed : %d => %d\n", objItems[id].Code, objItems[id].Names[0], weight, objItems[id].Weight)
setObjItemWeight(obj_id, objItems[id].weight)
setObjItemWeight(obj_id, objItems[id].Weight)
}
cacheObjItemId[obj_id] = id