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).
This commit is contained in:
ragnarok-clanker 2026-11-10 18:27:36 +00:00
commit fb03a842aa

View file

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