From a1875b160f175417786a8f5e03aba76f8a482206 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 12 Jan 2020 21:24:05 +0800 Subject: [PATCH] test --- obj.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/obj.go b/obj.go index 2db67d7..36a7b12 100644 --- a/obj.go +++ b/obj.go @@ -935,7 +935,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", i.Code, n, obj.Code) + log.Printf("loadObjItem2 : %s : duplicate code found. Belong to %s\n", i.Code, obj.Names[0]) } else { i2 := ChatWarsItem{ Auction: i.Auction, @@ -988,7 +988,7 @@ func loadObjItem2() error { if weight != obj.Weight { log.Printf("loadObjItem2 : %s : weight changed : %d => %d\n", weight, obj.Weight) } - cacheObjItemID[id] = obj + cacheObjItemId[id] = obj } } @@ -1016,11 +1016,11 @@ func loadObjItem2() error { if i.ObjID64 == 0 { id, err := addObjItem(i.Code, i.Names[0], i.ItemTypeID, i.Weight, i.Exchange, i.Auction) i.ObjID64 = id - cacheObjItemID[id] = obj + cacheObjItemId[id] = obj count := 0 for _, n := range i.Names { if count == 0 { - cacheObjItemID[n] = obj + cacheObjItemId[n] = obj continue } else { objAddName(id, n)