Decompile fn_18793 (EffectLists::Update)

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

- fn_18793 EffectLists::Update: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, alisonrag, sherollyner
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-10-30 10:10:44 +00:00
commit 509448b0d2

View file

@ -664,3 +664,13 @@ bool EffectLists::RegisterAllocator(int id, CAllocator* allocator) {
}
// OFFSET: 0x00B3AF30
// FUNCTION: fn_18793
void EffectLists::Update() {
for (auto& entry : this->active) {
std::list<CEffect*>& effects = entry.second;
effects.remove_if([](CEffect* effect) { return effect->RetireIfInactive(); });
for (CEffect* effect : effects) {
effect->Update(entry.first);
}
}
}