From 25386d588fc58fb5077e790d7320275afa57f39f Mon Sep 17 00:00:00 2001 From: hulkhan22 Date: Thu, 1 May 2025 23:04:17 +0200 Subject: [PATCH] Fix bonus ID check (#223) --- Libraries/SPTarkov.Server.Core/Services/ProfileFixerService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/SPTarkov.Server.Core/Services/ProfileFixerService.cs b/Libraries/SPTarkov.Server.Core/Services/ProfileFixerService.cs index 63a94019..46a548e6 100644 --- a/Libraries/SPTarkov.Server.Core/Services/ProfileFixerService.cs +++ b/Libraries/SPTarkov.Server.Core/Services/ProfileFixerService.cs @@ -872,7 +872,7 @@ public class ProfileFixerService( protected Bonus? GetBonusFromProfile(List? profileBonuses, Bonus bonus) { // match by id first, used by "TextBonus" bonuses - if (bonus.Id is null) + if (bonus.Id is not null) { return profileBonuses?.FirstOrDefault(x => x.Id == bonus.Id); }