From 509448b0d2c084ea3ea53bfa40779911da52e0f3 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 30 Oct 2026 10:10:44 +0000 Subject: [PATCH] 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). --- Source/Contents/Effects/EffectLists.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Source/Contents/Effects/EffectLists.cpp b/Source/Contents/Effects/EffectLists.cpp index 8cff099c..277ffd52 100644 --- a/Source/Contents/Effects/EffectLists.cpp +++ b/Source/Contents/Effects/EffectLists.cpp @@ -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& effects = entry.second; + effects.remove_if([](CEffect* effect) { return effect->RetireIfInactive(); }); + for (CEffect* effect : effects) { + effect->Update(entry.first); + } + } +}