From 065ee3243835584bf880d9cc1dfe2ee69dbffb23 Mon Sep 17 00:00:00 2001 From: Chomp Date: Sat, 28 Jun 2025 15:56:11 +0100 Subject: [PATCH] Made `activeBotsInRaid` readonly --- .../Services/BotGenerationCacheService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/SPTarkov.Server.Core/Services/BotGenerationCacheService.cs b/Libraries/SPTarkov.Server.Core/Services/BotGenerationCacheService.cs index 1c87db19..bbdfb2b4 100644 --- a/Libraries/SPTarkov.Server.Core/Services/BotGenerationCacheService.cs +++ b/Libraries/SPTarkov.Server.Core/Services/BotGenerationCacheService.cs @@ -12,7 +12,7 @@ public class BotGenerationCacheService( LocalisationService _localisationService ) { - protected Queue _activeBotsInRaid = []; + protected readonly Queue _activeBotsInRaid = []; protected readonly ConcurrentDictionary> _storedBots = new(); /// @@ -96,7 +96,7 @@ public class BotGenerationCacheService( public void ClearStoredBots() { _storedBots.Clear(); - _activeBotsInRaid = []; + _activeBotsInRaid.Clear(); } ///