diff --git a/project/SPT.Custom/Patches/MergeScavPmcQuestsOnInventoryLoadPatch.cs b/project/SPT.Custom/Patches/MergeScavPmcQuestsOnInventoryLoadPatch.cs index f53eb78..f0f04ce 100644 --- a/project/SPT.Custom/Patches/MergeScavPmcQuestsOnInventoryLoadPatch.cs +++ b/project/SPT.Custom/Patches/MergeScavPmcQuestsOnInventoryLoadPatch.cs @@ -28,7 +28,7 @@ namespace SPT.Custom.Patches var gameWorld = Singleton.Instance; if (gameWorld != null) { - if (gameWorld.MainPlayer.Location != "hideout" && gameWorld.MainPlayer.Fraction == ETagStatus.Scav) + if (gameWorld.MainPlayer?.Location != "hideout" && gameWorld.MainPlayer?.Fraction == ETagStatus.Scav) { var pmcQuests = PatchConstants.BackEndSession.Profile.QuestsData; var scavQuests = PatchConstants.BackEndSession.ProfileOfPet.QuestsData;