From 66d81297dc6c9dbd4a4de8441a933593b8498da4 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 26 Jan 2020 14:49:27 +0800 Subject: [PATCH] update --- item.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/item.go b/item.go index a80715e..cc54d57 100644 --- a/item.go +++ b/item.go @@ -3,6 +3,7 @@ package main import ( "errors" "fmt" + "log" "regexp" "strconv" "sync" @@ -140,7 +141,7 @@ func getSilentObjItemID(code string, name string) int64 { //log.Printf("Matching item full basename %s with %s.\n", basename, obj.Name) return objItems[id].ObjID64 } - i := -1 + i := int64(-1) for _, id := range cacheObjItem { if ok, _ := regexp.MatchString(`^(a|e|w)[0-9]+$`, objItems[id].Code); ok { //only gear can be custom named m := fmt.Sprintf("^((%s.*)|(.*%s))$", regexp.QuoteMeta(objItems[id].Names[0]), regexp.QuoteMeta(objItems[id].Names[0]))