This commit is contained in:
殷勇 2023-09-22 16:11:04 +08:00
parent 47f9076af5
commit 2180f94d30

View File

@ -119,9 +119,10 @@ func (cm *ChatMgr) ProcGuildChat(p *Player, msg *cs.CMSendChatMsg) {
if msgRec, exists := cm.guildMsgRec[guildId]; exists {
msgRec.AddChatMsg(chatMsg)
} else {
cm.guildMsgRec[guildId] = &ChatMsgRec{
CurrID: cm.guildMsgId,
}
newMsgRec := &ChatMsgRec{}
newMsgRec.CurrID = cm.guildMsgId
newMsgRec.AddChatMsg(chatMsg)
cm.guildMsgRec[guildId] = newMsgRec
}
// TraverseMember