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:
parent
cb1aab3d6b
commit
fb03a842aa
1 changed files with 4 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue