This commit is contained in:
shoopea 2019-05-25 16:10:18 +08:00
parent ee6b7f3ef7
commit 7b3c326f18

8
obj.go
View File

@ -244,9 +244,13 @@ func getObjGuildID(s string) int64 {
if g, ok := cacheObjGuild[s]; ok {
return g.ObjID64
} else {
_, err := addObjGuild(s, ``)
objID64, err := addObjGuild(s, ``)
logOnError(err, "getObjGuildID")
loadObjGuild()
g := new(ChatWarsGuild)
g.ObjID64 = objID64
g.Tag = s
g.Name = ``
cacheObjGuild[s] = *g
}
return cacheObjGuild[s].ObjID64
}