From 58ca43de4929bbdf72f8ebc8b0a32d7c2908a5d1 Mon Sep 17 00:00:00 2001 From: Archangel Date: Tue, 5 Aug 2025 17:32:36 +0200 Subject: [PATCH] Handle InvalidOrUnloadableProfile in GameController --- Libraries/SPTarkov.Server.Core/Controllers/GameController.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Libraries/SPTarkov.Server.Core/Controllers/GameController.cs b/Libraries/SPTarkov.Server.Core/Controllers/GameController.cs index e7720d52..dffd6514 100644 --- a/Libraries/SPTarkov.Server.Core/Controllers/GameController.cs +++ b/Libraries/SPTarkov.Server.Core/Controllers/GameController.cs @@ -77,6 +77,11 @@ public class GameController( return; } + if (fullProfile.ProfileInfo?.InvalidOrUnloadableProfile is not null && fullProfile.ProfileInfo.InvalidOrUnloadableProfile.Value) + { + return; + } + fullProfile.CharacterData!.PmcData!.WishList ??= new DictionaryOrList(new Dictionary(), []); fullProfile.CharacterData.ScavData!.WishList ??= new DictionaryOrList(new Dictionary(), []);