From 0a50e1460e647aa1550c258912a05bf2b51fb875 Mon Sep 17 00:00:00 2001 From: goaaats Date: Sat, 25 Jun 2022 17:15:26 +0200 Subject: [PATCH] fix: use ConcurrentDictionary in HookManager --- Dalamud/Hooking/Internal/HookManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dalamud/Hooking/Internal/HookManager.cs b/Dalamud/Hooking/Internal/HookManager.cs index 989425949..b9c0d270c 100644 --- a/Dalamud/Hooking/Internal/HookManager.cs +++ b/Dalamud/Hooking/Internal/HookManager.cs @@ -31,12 +31,12 @@ namespace Dalamud.Hooking.Internal /// /// Gets a static dictionary of original code for a hooked address. /// - internal static Dictionary Originals { get; } = new(); + internal static ConcurrentDictionary Originals { get; } = new(); /// /// Gets a static dictionary of the number of hooks on a given address. /// - internal static Dictionary> MultiHookTracker { get; } = new(); + internal static ConcurrentDictionary> MultiHookTracker { get; } = new(); /// public void Dispose()