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