From 099556c0e1efa9827cd8a0b925c7df248e248c49 Mon Sep 17 00:00:00 2001 From: Beu Date: Tue, 8 Mar 2022 19:23:52 +0100 Subject: [PATCH] Add a small check just to be sure to not have a crash --- LastManStanding.Script.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LastManStanding.Script.txt b/LastManStanding.Script.txt index 4891892..ab98422 100644 --- a/LastManStanding.Script.txt +++ b/LastManStanding.Script.txt @@ -532,7 +532,7 @@ if (Round_ForceEndRound || Round_SkipPauseRound) { declare CSmScore WinnerScore <=> Scores::GetBestPlayer(Race::C_Sort_RoundPoints); if (WinnerScore == Null) { foreach (Score in Scores) { - if (Score.BestRaceTimes.count <= 0 && AccountIdsOfPlayers.exists(Score.User.WebServicesUserId)) { + if (Score.BestRaceTimes.count <= 0 && Score.User != Null && AccountIdsOfPlayers.exists(Score.User.WebServicesUserId)) { WinnerScore <=> Score; break; }