From 899bde2af01e5c04e8ed202f8fab01dcb10d3215 Mon Sep 17 00:00:00 2001 From: IcePixelx <41352111+PixieCore@users.noreply.github.com> Date: Mon, 27 Dec 2021 21:30:04 +0100 Subject: [PATCH] Add comments. --- r5dev/tier0/completion.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/r5dev/tier0/completion.cpp b/r5dev/tier0/completion.cpp index f1ce5d42..2c0ef44d 100644 --- a/r5dev/tier0/completion.cpp +++ b/r5dev/tier0/completion.cpp @@ -494,11 +494,11 @@ void _RTech_Decompress_f_CompletionFunc(CCommand* cmd) if (rheader->m_nPatchIndex > 0) // Check if its an patch rpak. { - //// Loop through all the structs and patch their compress size. + // Loop through all the structs and patch their compress size. for (int i = 1, patch_offset = 0x88; i <= rheader->m_nPatchIndex; i++, patch_offset += sizeof(rpak_patch_compress_header)) { rpak_patch_compress_header* patch_header = (rpak_patch_compress_header*)((std::uintptr_t)pakbuf.data() + patch_offset); - patch_header->m_nSizeDisk = patch_header->m_nSizeMemory; + patch_header->m_nSizeDisk = patch_header->m_nSizeMemory; // Fix size for decompress. } }