From 47de505484a6715b5138255f3c687bb267e67d24 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 17:05:55 +0000 Subject: [PATCH] Decompile fn_04021 (myGPack::CGPakUpdate::CopyEntry) Batch #18628 by eAthena: 1 byte-identical, 0 confirmed by peer review. - fn_04021 myGPack::CGPakUpdate::CopyEntry: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/Archive/PakFile.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Archive/PakFile.cpp b/Source/Archive/PakFile.cpp index 803fe499e..9f953dba6 100644 --- a/Source/Archive/PakFile.cpp +++ b/Source/Archive/PakFile.cpp @@ -745,8 +745,9 @@ namespace myGPack { return false; } + const std::uint8_t* data = buffer.data(); const std::uint64_t offset = this->Allocate(entry.alignedSize); - if (!this->m_output.Write(offset, buffer.data(), entry.alignedSize)) { + if (!this->m_output.Write(offset, data, entry.alignedSize)) { return false; }