This commit is contained in:
shoopea 2020-01-26 15:08:18 +08:00
parent 23bb28fec5
commit f164b21f55

View File

@ -87,7 +87,7 @@ func getObjItem(objID64 int64) (*ChatWarsItem, error) {
defer muxObjItem.RUnlock()
if id, ok := cacheObjItemId[objID64]; ok {
//log.Printf("Matching item name %s with %s.\n", name, obj.Name)
return objItems[id], nil
return &objItems[id], nil
} else {
return nil, errors.New("Item not found.")
}