From 3bd3a8ec8e4481983a844047c8a4f0034acbe2a8 Mon Sep 17 00:00:00 2001 From: AkiVer Date: Mon, 26 Feb 2024 22:04:57 +0100 Subject: [PATCH] fix: panic on round end draw events --- pkg/demoinfocs/datatables.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/demoinfocs/datatables.go b/pkg/demoinfocs/datatables.go index c3e95c24..1fe484ac 100644 --- a/pkg/demoinfocs/datatables.go +++ b/pkg/demoinfocs/datatables.go @@ -1389,7 +1389,7 @@ func (p *parser) bindGameRules() { var winnerState *common.TeamState var loserState *common.TeamState - if winner != common.TeamUnassigned { + if winner != common.TeamUnassigned && winner != common.TeamSpectators { winnerState = p.gameState.Team(winner) loserState = winnerState.Opponent }