mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
DataCache: add missing checks
Should check for model cache handle again, and also check anim cache handle.
This commit is contained in:
parent
ab79606c7f
commit
bdb6be6255
@ -67,7 +67,7 @@ studiohdr_t* CMDLCache::FindMDL(CMDLCache* const cache, const MDLHandle_t handle
|
|||||||
|
|
||||||
if ((studioData->flags & nFlags))
|
if ((studioData->flags & nFlags))
|
||||||
{
|
{
|
||||||
if (modelCache)
|
if (IS_VALID_DATACACHE_HANDLE(modelCache))
|
||||||
{
|
{
|
||||||
if (a3)
|
if (a3)
|
||||||
{
|
{
|
||||||
@ -85,7 +85,7 @@ studiohdr_t* CMDLCache::FindMDL(CMDLCache* const cache, const MDLHandle_t handle
|
|||||||
|
|
||||||
studioanimcache_t* const animCache = studioData->animCache;
|
studioanimcache_t* const animCache = studioData->animCache;
|
||||||
|
|
||||||
if (animCache)
|
if (IS_VALID_DATACACHE_HANDLE(animCache))
|
||||||
{
|
{
|
||||||
studiohdr_t* const pStudioHdr = animCache->GetStudioHdr();
|
studiohdr_t* const pStudioHdr = animCache->GetStudioHdr();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user