From 0e57840d9876b49ec1399266a8187bedfbfd3cd5 Mon Sep 17 00:00:00 2001 From: RaphaelIT7 <64648134+RaphaelIT7@users.noreply.github.com> Date: Mon, 17 Nov 2025 00:15:32 +0100 Subject: [PATCH] datacache: make m_MDLDict threadsafe (other things still are not!) --- datacache/mdlcache.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/datacache/mdlcache.cpp b/datacache/mdlcache.cpp index 6f82a5c63..9bc7e2627 100644 --- a/datacache/mdlcache.cpp +++ b/datacache/mdlcache.cpp @@ -12,7 +12,7 @@ #include "tier0/vprof.h" #include "tier0/icommandline.h" #include "tier1/utllinkedlist.h" -#include "tier1/utlmap.h" +#include "tier1/utlmapmt.h" #include "tier1/utldict.h" #include "tier1/convar.h" #include "tier1/mempool.h" @@ -474,7 +474,7 @@ class CMDLCache : public CTier3AppSystem< IMDLCache >, public IStudioDataCache, int m_nModelCacheFrameLocks; int m_nMeshCacheFrameLocks; - CUtlDict< studiodata_t*, MDLHandle_t > m_MDLDict; + CUtlDict< studiodata_t*, MDLHandle_t, CUtlMapMT > m_MDLDict; IMDLCacheNotify *m_pCacheNotify;