Decompile fn_17244 (UIWindowMgr::SaveReplayWindows)

Batch #18629 by eAthena: 0 byte-identical, 1 confirmed by peer review.

- fn_17244 UIWindowMgr::SaveReplayWindows: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, Toshiro, cremane
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-12 17:53:07 +00:00
commit 595ef5b970

View file

@ -2147,8 +2147,7 @@ std::vector<unsigned char> UIWindowMgr::SaveReplayWindows() {
for (auto it = this->rendered.begin(); it != this->rendered.end(); ++it) {
const unsigned id = static_cast<unsigned>((*it)->geometry.id);
if (id <= 10040 && this->policy[id].actions[7]) {
std::vector<unsigned char> state = (*it)->GetReplayData();
AppendReplayChunk(data, MakeReplayChunk((*it)->geometry.id + 20100, state));
AppendReplayChunk(data, MakeReplayChunk((*it)->geometry.id + 20100, (*it)->GetReplayData()));
}
}
AppendReplayChunk(data, MakeReplayMarker(20001));