From fb03a842aa3c0aba445542c07013ccd80e5ec8c3 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Tue, 10 Nov 2026 18:27:36 +0000 Subject: [PATCH] Decompile fn_05155 (CGuildEmblemReqBundle::Update) Batch #16379 by youko: 0 byte-identical, 1 confirmed by peer review. - fn_05155 CGuildEmblemReqBundle::Update: logic confirmed by peer review Peer-reviewed-by: eAthena, Yommy, Toshiro Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Emblems/GuildEmblemReqBundle.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/Contents/Emblems/GuildEmblemReqBundle.cpp b/Source/Contents/Emblems/GuildEmblemReqBundle.cpp index bca56dd00..52aae081e 100644 --- a/Source/Contents/Emblems/GuildEmblemReqBundle.cpp +++ b/Source/Contents/Emblems/GuildEmblemReqBundle.cpp @@ -37,9 +37,10 @@ void CGuildEmblemReqBundle::Update() { while (!this->m_pending.empty()) { const auto request = this->m_pending.front(); - if (std::find_if(this->m_recent.begin(), this->m_recent.end(), [&](const Recent& value) { - return value.guildId == request.first && value.version == request.second; - }) != this->m_recent.end()) { + const auto end = this->m_recent.end(); + if (std::find_if(this->m_recent.begin(), end, [request](const Recent& value) { + return request.first == value.guildId && request.second == value.version; + }) != end) { this->m_pending.pop_front(); continue; }