This commit is contained in:
hydrant
2021-04-03 23:31:49 +02:00
parent f14c11632b
commit 972f8e5637

View File

@@ -57,7 +57,7 @@ namespace ReallifeGamemode.Server.Services
foreach (Player c in NAPI.Pools.GetAllPlayers()) foreach (Player c in NAPI.Pools.GetAllPlayers())
{ {
User user = c.GetUser(); User user = c.GetUser();
Faction f = user.Faction; Faction f = user?.Faction;
if (f != null) if (f != null)
{ {
if (factions.Find(fT => fT.Id == f.Id) != null) if (factions.Find(fT => fT.Id == f.Id) != null)