mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-12 14:50:43 -05:00
Resolve exception caused by opening inventory preview during raid loading (!174)
Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com> Reviewed-on: SPT/Modules#174 Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com> Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
This commit is contained in:
parent
3857bd4b53
commit
3ac4f1e4bb
@ -28,7 +28,7 @@ namespace SPT.Custom.Patches
|
||||
var gameWorld = Singleton<GameWorld>.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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user