test
This commit is contained in:
parent
7ed97d0a59
commit
64f9cec17d
9
obj.go
9
obj.go
@ -735,13 +735,8 @@ func loadObjItem() error {
|
||||
return err
|
||||
}
|
||||
|
||||
if _, ok := cacheObjItem.Load(intl_id); !ok {
|
||||
c := new(ChatWarsItem)
|
||||
c.ObjID64 = id
|
||||
c.Code = intl_id
|
||||
c.Name = name
|
||||
c.Weight = weight
|
||||
cacheObjItem.Store(name, *c)
|
||||
if v, ok := cacheObjItem.Load(intl_id); ok {
|
||||
cacheObjItem.Store(name, *v)
|
||||
} else {
|
||||
log.Printf("loadObjItem : orphaned obj_name for `%s` : %s.\n", intl_id, name)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user