From 7d303e8026082ce6e9313ee1a492edbff6bc8f9b Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 20 Sep 2024 15:44:43 +0800 Subject: [PATCH] 1 --- server/matchserver/history/historymgr.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/matchserver/history/historymgr.go b/server/matchserver/history/historymgr.go index 3e4595a7..fc910f9c 100644 --- a/server/matchserver/history/historymgr.go +++ b/server/matchserver/history/historymgr.go @@ -25,7 +25,9 @@ func (this *historyMgr) AddBattle(accountId string, mapId int32, modeId int32) { u := this.getUser(accountId) if u == nil { u = new(user) + u.init() u.accountId = accountId + this.userHash[accountId] = u } u.addBattle(mapId, modeId) } @@ -47,6 +49,7 @@ func (this *historyMgr) PushLastBattleInfo(hum common.Player) { if modeId == jccommon.MAP_MODE_CIRCUIT { p.IntervalTime = proto.Int32(mt.Table.Config.Get().GetCircuitModeIntervalTime()) } + q5.AppendSlice(&msg.BattleList, p) } hum.SendMsg(msg) }