DataCache: add missing check

Must check on this animrig cache handle as well.
This commit is contained in:
Kawe Mazidjatari 2024-01-07 01:44:09 +01:00
parent d20eeea5d4
commit 76240c5064

View File

@ -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();
}