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) }