From 4854647d659f75ac6cf4575b61d1dcfd25865791 Mon Sep 17 00:00:00 2001 From: Fox Caminiti Date: Sun, 18 Dec 2022 20:00:47 -0500 Subject: lazy --- src/memory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/memory.cpp') diff --git a/src/memory.cpp b/src/memory.cpp index 05254cb..488f6bf 100644 --- a/src/memory.cpp +++ b/src/memory.cpp @@ -185,9 +185,9 @@ Memory_Cache_Purge(project_data *File, project_state *State, memory *Memory, int int c = 0; int count = Memory->EntryCount; while (count != 0) { - bool32 ExtraCheck = (SingleFrame == -1) ? 1 : EntryArray[c].TypeInfo == SingleFrame; + bool32 ExtraCheck = (SingleFrame == -1) ? 1 : EntryArray[c].TypeInfo_Sub == SingleFrame; if (EntryArray[c].Type == cache_entry_type_comp && - EntryArray[c].TypeInfo == File->PrincipalCompIndex && SingleFrame) { + EntryArray[c].TypeInfo == File->PrincipalCompIndex && ExtraCheck) { EntryArray[c].IsCached = 0; } c++; -- cgit v1.2.3