fix missing null check in scoreboard. oops
This commit is contained in:
parent
e90355307d
commit
2b467d6ef9
@ -95,7 +95,7 @@ namespace WebfrontCore.Controllers
|
|||||||
{
|
{
|
||||||
ClientName = clientData.client.Name,
|
ClientName = clientData.client.Name,
|
||||||
ClientId = clientData.client.ClientId,
|
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,
|
Ping = clientData.client.Ping,
|
||||||
Kills = clientData.stats?.MatchData?.Kills,
|
Kills = clientData.stats?.MatchData?.Kills,
|
||||||
Deaths = clientData.stats?.MatchData?.Deaths,
|
Deaths = clientData.stats?.MatchData?.Deaths,
|
||||||
|
Loading…
Reference in New Issue
Block a user