This commit is contained in:
Lukas Moungos
2019-07-20 13:17:13 +02:00
parent 8b4796cd85
commit c27f2a7d82
4 changed files with 13 additions and 8 deletions

View File

@@ -43,7 +43,7 @@ namespace ReallifeGamemode.Server.Wanted
foreach (var player in NAPI.Pools.GetAllPlayers())
{
User user = player.GetUser();
if (user.Wanteds > 0)
if (user != null && user.Wanteds > 0)
{
if (!waTimer.ContainsKey(user.Id))
ResetWantedTimeToElapse(player);