diff --git a/ReallifeGamemode.Server/Wanted/Jail.cs b/ReallifeGamemode.Server/Wanted/Jail.cs index 66b5df9a..566f047e 100644 --- a/ReallifeGamemode.Server/Wanted/Jail.cs +++ b/ReallifeGamemode.Server/Wanted/Jail.cs @@ -109,7 +109,7 @@ namespace ReallifeGamemode.Server.Wanted foreach (var player in NAPI.Pools.GetAllPlayers()) { User user = player.GetUser(); - if (!Jailtime.ContainsKey(user.Id)) + if (user != null && !Jailtime.ContainsKey(user.Id)) { foreach (var copPlayer in NAPI.Pools.GetAllPlayers()) { @@ -180,7 +180,6 @@ namespace ReallifeGamemode.Server.Wanted } } - public static void Release_Jail(Client player, string reason) { User user = player.GetUser();