Handle InvalidOrUnloadableProfile in GameController

This commit is contained in:
Archangel
2025-08-05 17:32:36 +02:00
parent c2a4877989
commit 58ca43de49
@@ -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<MongoId, int>(new Dictionary<MongoId, int>(), []);
fullProfile.CharacterData.ScavData!.WishList ??= new DictionaryOrList<MongoId, int>(new Dictionary<MongoId, int>(), []);