Merge branch 'develop' into 'master'

Develop

See merge request log-gtav/reallife-gamemode!30
This commit is contained in:
hydrant
2021-04-03 21:33:15 +00:00

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)