From 686e65cc707087c7e2ddcc9ff1123eab1fad4e70 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sun, 7 Jan 2024 01:44:09 +0100 Subject: [PATCH] DataCache: add missing check Must check on this animrig cache handle as well. --- src/datacache/mdlcache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/datacache/mdlcache.cpp b/src/datacache/mdlcache.cpp index 6a40066d..751ed8ac 100644 --- a/src/datacache/mdlcache.cpp +++ b/src/datacache/mdlcache.cpp @@ -159,7 +159,7 @@ studiohdr_t* CMDLCache::FindUncachedMDL(CMDLCache* const cache, const MDLHandle_ if (!pStudioData->modelCache) { studioanimcache_t* const animCache = pStudioData->GetAnimCache(); - if (animCache) + if (IS_VALID_DATACACHE_HANDLE(animCache)) { studioHdr = animCache->GetStudioHdr(); }