Skip to content

Commit

Permalink
Merge pull request #516 from markus-wa/fix-round-draw
Browse files Browse the repository at this point in the history
fix: panic on round end draw events
  • Loading branch information
markus-wa authored Feb 26, 2024
2 parents 205b0bb + 3bd3a8e commit c65159b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/demoinfocs/datatables.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit c65159b

Please sign in to comment.