fix missing null check in scoreboard. oops

This commit is contained in:
RaidMax 2022-01-24 10:24:48 -06:00
parent e90355307d
commit 2b467d6ef9

View File

@ -95,7 +95,7 @@ namespace WebfrontCore.Controllers
{
ClientName = clientData.client.Name,
ClientId = clientData.client.ClientId,
Score = Math.Max(clientData.client.Score, clientData.stats.SessionScore),
Score = Math.Max(clientData.client.Score, clientData.stats?.SessionScore ?? 0),
Ping = clientData.client.Ping,
Kills = clientData.stats?.MatchData?.Kills,
Deaths = clientData.stats?.MatchData?.Deaths,