From f4ac2fd1bffaa65f18ddfe515c6922d645eb4207 Mon Sep 17 00:00:00 2001 From: PintTheDragon Date: Wed, 25 Jan 2023 15:52:19 -0800 Subject: [PATCH] Fix error on round progress check --- SCPStats/Helper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SCPStats/Helper.cs b/SCPStats/Helper.cs index 2458b4c..5e0c6f9 100644 --- a/SCPStats/Helper.cs +++ b/SCPStats/Helper.cs @@ -198,7 +198,7 @@ internal static PlayerInfo GetFootprintInfo(Footprint f, bool tutorial = true, b return new PlayerInfo(null, f.Role, true); } - internal static bool IsRoundRunning() => !EventHandler.PauseRound && RoundSummary.RoundInProgress(); + internal static bool IsRoundRunning() => !EventHandler.PauseRound && !(ReferenceHub.LocalHub is null) && RoundSummary.RoundInProgress(); internal static string HmacSha256Digest(string secret, string message) {