Fix Fehler bei Punktevergabe

This commit is contained in:
hydrant
2020-07-31 19:26:03 +02:00
parent a60e6c55d1
commit 828d94b01c

View File

@@ -524,6 +524,11 @@ namespace ReallifeGamemode.Server.Managers
foreach (var copPlayer in NAPI.Pools.GetAllPlayers()) foreach (var copPlayer in NAPI.Pools.GetAllPlayers())
{ {
User copUser = copPlayer.GetUser(); User copUser = copPlayer.GetUser();
if (copUser == null)
{
continue;
}
if (copUser.FactionId == 1 || copUser.FactionId == 3) if (copUser.FactionId == 1 || copUser.FactionId == 3)
{ {
if (copUser.GetData<bool>("duty") == true) if (copUser.GetData<bool>("duty") == true)