This commit is contained in:
shoopea 2019-07-08 12:02:59 +08:00
parent 60bf352d49
commit 289fbd280e

7
obj.go
View File

@ -736,7 +736,12 @@ func loadObjItem() error {
}
if v, ok := cacheObjItem.Load(intl_id); ok {
cacheObjItem.Store(name, v)
c := new(ChatWarsItem)
c.ObjID64 = id
c.Code = intl_id
c.Name = name
c.Weight = weight
cacheObjItem.Store(name, *c)
} else {
log.Printf("loadObjItem : orphaned obj_name for `%s` : %s.\n", intl_id, name)
}