Fixed error on profile generation

This commit is contained in:
Chomp
2025-08-19 10:29:13 +01:00
parent bb566e32ad
commit 2f1a7f6663
@@ -90,7 +90,7 @@ public class ProfileHelper(
{
// Remove `loyaltyLevel` from `TradersInfo`, as otherwise it causes the client to not
// properly calculate the player's `loyaltyLevel`
foreach (var trader in clonedProfile.CharacterData?.PmcData?.TradersInfo.Values!)
foreach (var trader in clonedProfile.CharacterData?.PmcData?.TradersInfo?.Values!)
{
trader.LoyaltyLevel = null;
}