From 65666678b0ddfec2d3e5a2f7777fb110dbb8a570 Mon Sep 17 00:00:00 2001 From: Gurge44 <90392754+Gurge44@users.noreply.github.com> Date: Mon, 18 May 2026 16:28:45 +0200 Subject: [PATCH] add ? --- Patches/CheckGameEndPatch.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Patches/CheckGameEndPatch.cs b/Patches/CheckGameEndPatch.cs index 4562be778..4c093454c 100644 --- a/Patches/CheckGameEndPatch.cs +++ b/Patches/CheckGameEndPatch.cs @@ -366,7 +366,7 @@ internal static class GameEndChecker } } - toAdd.ForEach(x => WinnerIds.Add(x)); + toAdd?.ForEach(x => WinnerIds.Add(x)); foreach (CustomRoles role in WinnerRoles) WinnerIds.UnionWith(Main.EnumeratePlayerControls().Where(x => x.GetCustomRole() == role).Select(x => x.PlayerId)); } @@ -1517,4 +1517,4 @@ internal static class CheckEndGameViaTasksPatch __result = false; return false; } -} \ No newline at end of file +}