From 289fbd280e02ac49df36db61de259551eaf57415 Mon Sep 17 00:00:00 2001 From: shoopea Date: Mon, 8 Jul 2019 12:02:59 +0800 Subject: [PATCH] test --- obj.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/obj.go b/obj.go index f1a4b20..62717cf 100644 --- a/obj.go +++ b/obj.go @@ -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) }