From 97d88621421efcb036b5418bda787c6e37856531 Mon Sep 17 00:00:00 2001 From: Aragas Date: Sat, 11 Dec 2021 01:00:03 +0300 Subject: [PATCH] Compiler fix --- .../BehaviorManagers/CampaignDescriptorManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Bannerlord.ButterLib.Implementation/CampaignIdentifier/CampaignBehaviors/BehaviorManagers/CampaignDescriptorManager.cs b/src/Bannerlord.ButterLib.Implementation/CampaignIdentifier/CampaignBehaviors/BehaviorManagers/CampaignDescriptorManager.cs index 809d5944..b1713d95 100644 --- a/src/Bannerlord.ButterLib.Implementation/CampaignIdentifier/CampaignBehaviors/BehaviorManagers/CampaignDescriptorManager.cs +++ b/src/Bannerlord.ButterLib.Implementation/CampaignIdentifier/CampaignBehaviors/BehaviorManagers/CampaignDescriptorManager.cs @@ -50,7 +50,7 @@ internal void GenerateNewGameDescriptor() internal void CheckCampaignDescriptor() { // There is no guarantee that Load() will not yield a non null - if (_campaignDescriptor is null!) + if (_campaignDescriptor is null) { AddDescriptorToExistingCampaign(); } @@ -147,7 +147,7 @@ private List LoadExistingDescriptors() internal void Sync() { - if (_descriptorToBeAssigned is not null && _campaignDescriptor is not null! && _descriptorToBeAssigned == _campaignDescriptor) + if (_descriptorToBeAssigned is not null && _campaignDescriptor is not null && _descriptorToBeAssigned == _campaignDescriptor) { UpdateSavedDescriptors(); }