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:
parent
869a431bdf
commit
509448b0d2
1 changed files with 10 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue