From 8abf5bbb136bdfa13181e7f68f2bba8953ca982f Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 01:34:09 +0000 Subject: [PATCH] Decompile fn_03097 (EffectResourceSwitcher::OnProcess) Batch #17625 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_03097 EffectResourceSwitcher::OnProcess: logic confirmed by peer review Peer-reviewed-by: Yommy, cremane, Eofim Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Effects/EffectResourceSwitcher.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Contents/Effects/EffectResourceSwitcher.cpp b/Source/Contents/Effects/EffectResourceSwitcher.cpp index 1001438c2..41235bb13 100644 --- a/Source/Contents/Effects/EffectResourceSwitcher.cpp +++ b/Source/Contents/Effects/EffectResourceSwitcher.cpp @@ -155,7 +155,8 @@ void EffectResourceSwitcher::OnProcess() { CEZ2STREffectEx* previous = this->effect; this->sourceName = this->targetName; this->targetName = ""; - this->effect = static_cast(g_effectMgr->Spawn(0, CEZ2STREffectMgr::GetInstance()->EffectId(this->sourceName), this->spawnPosition, 0, -1, 0, 0)); + EffectLists* effectMgr = g_effectMgr; + this->effect = static_cast(effectMgr->Spawn(0, CEZ2STREffectMgr::GetInstance()->EffectId(this->sourceName), this->spawnPosition, 0, -1, 0, 0)); this->active = 0; if (previous) { previous->EndLoop(0);