From 7af846ba235fca7ccfa6ed277bbfdbe2b163b184 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sat, 7 Nov 2026 07:22:00 +0000 Subject: [PATCH] Decompile fn_19997 (CEffectPrim::RenderLaunchEffects) Batch #13744 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_19997 CEffectPrim::RenderLaunchEffects: logic confirmed by peer review Peer-reviewed-by: Yommy, secret, codeplay Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- .../Effects/EffectPrimitiveSprites.cpp | 22 ++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/Source/Contents/Effects/EffectPrimitiveSprites.cpp b/Source/Contents/Effects/EffectPrimitiveSprites.cpp index 435e72b2e..fbab0d057 100644 --- a/Source/Contents/Effects/EffectPrimitiveSprites.cpp +++ b/Source/Contents/Effects/EffectPrimitiveSprites.cpp @@ -21,11 +21,23 @@ // OFFSET: 0x00BF58F0 // FUNCTION: fn_19997 -void CEffectPrim::RenderLaunchEffects(matrix&) { - vector3d vec1{}; - vector3d vec2{}; - vector3d vec3{}; - vector3d vec4{}; +__declspec(safebuffers) void CEffectPrim::RenderLaunchEffects(matrix&) { + vector3d vec1; + vector3d vec2; + vector3d vec3; + vector3d vec4; + vec1.x = 0.0f; + vec1.y = 0.0f; + vec1.z = 0.0f; + vec2.x = 0.0f; + vec2.y = 0.0f; + vec2.z = 0.0f; + vec3.x = 0.0f; + vec3.y = 0.0f; + vec3.z = 0.0f; + vec4.x = 0.0f; + vec4.y = 0.0f; + vec4.z = 0.0f; for (int ec = 0; ec < 4; ++ec) { const EffectPrimitiveSlot& slot = this->state.slots[ec];