diff --git a/ReallifeGamemode.Server/Events/Key.cs b/ReallifeGamemode.Server/Events/Key.cs index bb57ae1b..8652f8c4 100644 --- a/ReallifeGamemode.Server/Events/Key.cs +++ b/ReallifeGamemode.Server/Events/Key.cs @@ -166,7 +166,7 @@ namespace ReallifeGamemode.Server.Events int medicCount = 0; foreach (Player c in NAPI.Pools.GetAllPlayers()) { - if ((c.GetUser()?.Faction.Id ?? 0) == 2) + if ((c.GetUser()?.Faction?.Id ?? 0) == 2) { medicCount++; }