0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-13 02:30:44 -05:00

Additional null guard

This commit is contained in:
Dev 2023-08-07 19:47:22 +01:00
parent 78a22ead66
commit 5e881d263f

View File

@ -27,7 +27,7 @@ namespace Aki.SinglePlayer.Utils.Insurance
public void Init()
{
_items = Singleton<GameWorld>.Instance?.MainPlayer?.Profile?.Inventory?.AllRealPlayerItems.ToList();
_items = Singleton<GameWorld>.Instance?.MainPlayer?.Profile?.Inventory?.AllRealPlayerItems?.ToList();
}
public List<AkiInsuredItemClass> GetTrackedItems()