This commit is contained in:
aozhiwei 2024-04-08 17:01:59 +08:00
parent 80cccdcea0
commit ffc4dbbac7

View File

@ -172,6 +172,8 @@ func (this *guild) asyncLeave(accountId string, cb func(int32, string)) {
cb(500, "server internal error")
return
}
delete(this.idHash, m.memberId)
delete(_guildMgr.memberIdHash, m.memberId)
if m.guildJob == constant.GuildMemberLevelLeader {
var nextLeader *member
this.traverseMembers(
@ -206,7 +208,6 @@ func (this *guild) asyncLeave(accountId string, cb func(int32, string)) {
return
})
}
delete(this.idHash, m.memberId)
}
if this.GetMemberNum() <= 0 {
f5.GetJsStyleDb().Update(