Fixed error on profile generation
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user