Skip to content

Commit 754914c

Browse files
committed
Updated cache_files_populate_resource_gestalt
1 parent d96955a commit 754914c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

game/source/cache/cache_files.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,9 @@ s_cache_file_resource_gestalt* __cdecl cache_files_populate_resource_gestalt()
569569

570570
int32 total_resource_fixup_count = 0;
571571
for (int32 i = 0; i < g_cache_file_globals.tag_loaded_count; i++)
572-
total_resource_fixup_count += g_cache_file_globals.tag_instances[i]->resource_fixup_count;
572+
{
573+
total_resource_fixup_count += g_cache_file_globals.tag_instances[i]->resource_fixup_count & 0xFFFF;
574+
}
573575

574576
int32 resource_fixup_size = sizeof(s_cache_file_tag_resource_data*) * total_resource_fixup_count;
575577
int32 resource_gestalt_size = resource_fixup_size + sizeof(s_cache_file_resource_gestalt);

0 commit comments

Comments
 (0)