From b027cd040ef669ca86196e7c9c93cddc9cc3bfbd Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 06:16:55 +0000 Subject: [PATCH] Decompile fn_07372 (CRandomOptEffect::OnProcess) Batch #17986 by eAthena: 1 byte-identical, 0 confirmed by peer review. - fn_07372 CRandomOptEffect::OnProcess: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/Contents/Effects/Skills/MonsterSkillEffects.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Source/Contents/Effects/Skills/MonsterSkillEffects.cpp b/Source/Contents/Effects/Skills/MonsterSkillEffects.cpp index e730f960d..479ac123a 100644 --- a/Source/Contents/Effects/Skills/MonsterSkillEffects.cpp +++ b/Source/Contents/Effects/Skills/MonsterSkillEffects.cpp @@ -2731,11 +2731,12 @@ bool CRandomOptEffect::IsAlive() { void CRandomOptEffect::OnProcess() { for (auto it = this->particles.begin(); it != this->particles.end(); ++it) { CParticle* particle = *it; - particle->position.x = this->position[0]; - particle->position.y = this->position[1]; - particle->position.z = this->position[2]; + vector3d& particlePosition = (*it)->position; + particlePosition.x = this->position[0]; + particlePosition.y = this->position[1]; + particlePosition.z = this->position[2]; - if (*it) { + if (particle) { const int angle = static_cast( static_cast(particle->rowIndex) + *reinterpret_cast(&particle->angleBits) + 3.0f); *reinterpret_cast(&particle->angleBits) = static_cast(angle);