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.
This commit is contained in:
ragnarok-clanker 2026-11-09 13:08:55 +00:00
commit 7ee31790cd

View file

@ -210,19 +210,16 @@ void CEZ2STRParticle::Restart() {
this->m_finishedClips = 0;
this->m_frame = 0;
this->m_data = reinterpret_cast<EZeffectData*>(&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<unsigned char*>(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