From 7ee31790cd6d0caef7d0a090910cec913b0ddb7f Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Mon, 9 Nov 2026 13:08:55 +0000 Subject: [PATCH] Decompile fn_18818 (CEZ2STRParticle::Restart) Batch #15213 by Yommy: 1 byte-identical, 0 confirmed by peer review. - fn_18818 CEZ2STRParticle::Restart: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/Contents/Effects/Particle.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Source/Contents/Effects/Particle.cpp b/Source/Contents/Effects/Particle.cpp index b16a97f64..b8d5c3387 100644 --- a/Source/Contents/Effects/Particle.cpp +++ b/Source/Contents/Effects/Particle.cpp @@ -210,19 +210,16 @@ void CEZ2STRParticle::Restart() { this->m_finishedClips = 0; this->m_frame = 0; this->m_data = reinterpret_cast(&resource->maximumFrame); - this->m_clipLimit = resource->clipCount; - if (resource->clips[0].frameCount == 0) { - this->m_clipLimit = resource->clipCount - 1; + this->m_clipLimit = this->m_data->clipCount; + if (this->m_data->clips[0].frameCount == 0) { + --this->m_clipLimit; } for (int i = 0; i < this->m_data->clipCount; ++i) { this->m_cursors[i] = 0; } - unsigned char* bytes = reinterpret_cast(this->m_transforms); - for (int count = sizeof(this->m_transforms); count != 0; --count) { - *bytes++ = 0; - } + SecureZeroMemory(this->m_transforms, sizeof(this->m_transforms)); } // OFFSET: 0x00B3D7A0