test
This commit is contained in:
parent
e062d2b7fd
commit
b31c98f427
2
obj.go
2
obj.go
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user