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).
This commit is contained in:
ragnarok-clanker 2026-11-06 04:52:45 +00:00
commit 513f9f512d

View file

@ -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;
}
};