From 97b862f0b0e3a4121fea7306a06abb6e813b977f Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 14:29:06 +0000 Subject: [PATCH] Decompile fn_18368 (FillMessageBuckets) Batch #12299 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_18368 FillMessageBuckets: logic confirmed by peer review Peer-reviewed-by: Yommy, Tanke, cremane Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/MessageTable.cpp | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/Source/Contents/MessageTable.cpp b/Source/Contents/MessageTable.cpp index ba3c2bf9..a0f4868d 100644 --- a/Source/Contents/MessageTable.cpp +++ b/Source/Contents/MessageTable.cpp @@ -4894,22 +4894,8 @@ bool CCommonObject::LoadCsv(const char* name, std::function(first) + 3) >> 2; - if (reinterpret_cast(first) > last) { - count = 0; - } - if (count >= 4) { - result = *value; - if (first > value || &first[count - 1] < value) { - unsigned int aligned = count & ~3u; - dest = &first[aligned]; - __stosd(reinterpret_cast(first), static_cast(result), aligned); - } - } - for (; dest != reinterpret_cast(last); ++dest) { - *dest = *value; + for (; first != reinterpret_cast(last); ++first) { + *first = *value; } }