From 4eac8d90fb7db7d28c5dedf280cf5a8492a66c54 Mon Sep 17 00:00:00 2001 From: Chomp Date: Sun, 8 Jun 2025 10:06:51 +0100 Subject: [PATCH] Fixed limb effect not being nulled correctly inside `TransferPostRaidLimbEffectsToProfile` --- Libraries/SPTarkov.Server.Core/Helpers/HealthHelper.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Libraries/SPTarkov.Server.Core/Helpers/HealthHelper.cs b/Libraries/SPTarkov.Server.Core/Helpers/HealthHelper.cs index 8470b119..3365cf69 100644 --- a/Libraries/SPTarkov.Server.Core/Helpers/HealthHelper.cs +++ b/Libraries/SPTarkov.Server.Core/Helpers/HealthHelper.cs @@ -218,12 +218,12 @@ public class HealthHelper( // Effect already exists on limb in server profile, skip var profileBodyPartEffects = profileData.Health.BodyParts[bodyPartId.Key].Effects; - if (profileBodyPartEffects.TryGetValue(effect.Key, out var dictEffect)) + if (profileBodyPartEffects.TryGetValue(effect.Key, out _)) { if (effectsToIgnore.Contains(effect.Key)) - // Get rid of certain effects we dont want to persist out of raid + // Get rid of certain effects we don't want to persist out of raid { - dictEffect = null; + profileBodyPartEffects[effect.Key] = null; } continue; @@ -249,7 +249,7 @@ public class HealthHelper( } /// - /// Adjust hydration/energy/temperate and body part hp values in player profile to values in profile.vitality + /// Adjust hydration/energy/temperate and body part hp values in player profile to values in `profile.vitality` /// /// Profile to update /// Session id