This commit is contained in:
shoopea 2019-07-08 12:20:07 +08:00
parent 37c343a3f8
commit cc6836854d

2
obj.go
View File

@ -721,6 +721,7 @@ func loadObjItem() error {
c.Weight = weight
cacheObjItem.Store(intl_id, *c)
cacheObjItem.Store(name, *c)
log.Printf("loadObjItem[%d] : %s : `%s` : %s.\n", id, intl_id, name)
}
items2, err := db.Query(`SELECT oi.obj_id, oi.intl_id, obn.name, oi.weight FROM obj_item oi, obj_name obn WHERE obn.obj_id = oi.obj_id AND obn.priority > 0;`)
@ -742,6 +743,7 @@ func loadObjItem() error {
c.Name = name
c.Weight = weight
cacheObjItem.Store(name, *c)
log.Printf("loadObjItem[%d] : %s : `%s` : %s.\n", id, intl_id, name)
} else {
log.Printf("loadObjItem : orphaned obj_name for `%s` : %s.\n", intl_id, name)
}