From 0bd8ba4d9a5ab9c44cbbaa0540bb3fc22283cca9 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 12 Jan 2020 20:20:18 +0800 Subject: [PATCH] test --- obj.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/obj.go b/obj.go index f924ac0..b0d5b37 100644 --- a/obj.go +++ b/obj.go @@ -945,8 +945,7 @@ func getSilentObjItemID(code string, name string) int64 { } func loadObjItem2() error { - var items, items2 []ChatWarsItem - var count int64 + var items []ChatWarsItem muxObjItem.Lock() cacheObjItem = make(map[string]ChatWarsItem) @@ -1050,7 +1049,7 @@ func loadObjItem() error { muxObjItem.Lock() cacheObjItem[intl_id] = c for _, n := range c.Names { - cacheObjItem[name] = c + cacheObjItem[n] = c } muxObjItem.Unlock() } else {