From 513f9f512d89c9da00ea651f9b69eaeb5a51ae52 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 04:52:45 +0000 Subject: [PATCH] Confirm 2 functions in Source/Client/Replay.h, Source/Client/Replay.cpp Batch #12776 by cremane: 0 byte-identical, 2 confirmed by peer review. - fn_19300 Replay::Replay: logic confirmed by peer review (already on main) - fn_19319 Replay::ResetFile: logic confirmed by peer review (already on main) Peer-reviewed-by: Yommy, gordaoprogramas, codeplay Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Client/Replay.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Client/Replay.h b/Source/Client/Replay.h index 9d3a025b..4fb2a7a6 100644 --- a/Source/Client/Replay.h +++ b/Source/Client/Replay.h @@ -60,10 +60,10 @@ struct ReplayHeader { // INLINED void Reset() { const ReplayOptions savedOptions = this->options; - std::memset(this, 0, sizeof(*this)); - this->options = savedOptions; + std::memset(&this->key0, 0, offsetof(ReplayHeader, options) - offsetof(ReplayHeader, key0)); this->signature = 0x52414705; this->closingSignature = 0x52414705; + this->options = savedOptions; } };