From 81d24694a884d3a71baa9ac5744acd559d119636 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 12 Jan 2020 21:22:12 +0800 Subject: [PATCH] test --- obj.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/obj.go b/obj.go index 081f1a6..0ce74e4 100644 --- a/obj.go +++ b/obj.go @@ -928,7 +928,7 @@ func loadObjItem2() error { log.Printf("loadObjItems2 : %s : name missing.\n", i.Code) } else { if obj, ok := cacheObjItem[i.Code]; ok { - log.Printf("loadObjItem2 : %s : duplicate code found. Belong to %s\n", i2.Code, n, obj.Code) + log.Printf("loadObjItem2 : %s : duplicate code found. Belong to %s\n", i.Code, n, obj.Code) } else { i2 := ChatWarsItem{ Auction: i.Auction, @@ -948,9 +948,9 @@ func loadObjItem2() error { } } - cacheObjItem[i.Code] = *i2 + cacheObjItem[i.Code] = i2 for _, n := range i.Names { - cacheObjItem[n] = *i2 + cacheObjItem[n] = i2 } } }