This commit is contained in:
shoopea 2019-06-02 18:48:20 +08:00
parent e062d2b7fd
commit b31c98f427

2
obj.go
View File

@ -492,7 +492,7 @@ func addObjItem(name string, code string, itemTypeID64 int64, weight int) (int64
func getObjItemID(s string) int64 { func getObjItemID(s string) int64 {
if v, ok := cacheObjItem.Load(s); ok { if v, ok := cacheObjItem.Load(s); ok {
i := v.(ChatWarsUser) i := v.(ChatWarsItem)
return i.ObjID64 return i.ObjID64
} else { } else {
s := fmt.Sprintf("Object unknown : %s\n", s) s := fmt.Sprintf("Object unknown : %s\n", s)