From bb504f6122b7935a55fd802de40c3c79c795fac2 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 11 Nov 2026 01:39:42 +0000 Subject: [PATCH] Decompile fn_20074 (CRagEffect::Init) Batch #16653 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_20074 CRagEffect::Init: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, Yommy, alisonrag Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Effects/Core/RagEffectInitialization.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/Contents/Effects/Core/RagEffectInitialization.cpp b/Source/Contents/Effects/Core/RagEffectInitialization.cpp index 81dc29184..9507a14d9 100644 --- a/Source/Contents/Effects/Core/RagEffectInitialization.cpp +++ b/Source/Contents/Effects/Core/RagEffectInitialization.cpp @@ -1,5 +1,6 @@ #include "Contents/Effects/Core/EffectActor.h" #include "Contents/Effects/Core/EffectTypes.h" +#include "Contents/Effects/Particles/Particle.h" #include "Contents/Effects/Core/RagEffect.h" #include "Contents/Effects/Core/RagEffectState.h" #include "Contents/Configuration/ServiceOptions.h" @@ -705,9 +706,9 @@ void CRagEffect::Init(EffectActor* parent, int id, vector3d deltaPos) { auto* resource = static_cast(this->state.resource); this->state.resourceData = &resource->maximumFrame; - this->state.endLayer = resource->clipCount; + this->state.endLayer = static_cast(this->state.resourceData)->clipCount; - if (resource->clips[0].frameCount == 0) { + if (static_cast(this->state.resourceData)->clips[0].frameCount == 0) { --this->state.endLayer; } }