From cf8c4bfe01484c72f8ff6a52289d4e083e2bebe1 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 12:52:12 +0000 Subject: [PATCH] Decompile 2 functions in Source/Contents/Effects/CellRangeEffect.cpp Batch #12274 by cremane: 2 byte-identical, 0 confirmed by peer review. - fn_18877 CCellRangeEffect::Close: byte-identical - fn_18881 CCellRangeEffect::Slot04: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/Contents/Effects/CellRangeEffect.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/Contents/Effects/CellRangeEffect.cpp b/Source/Contents/Effects/CellRangeEffect.cpp index c8a56843..e009e2fd 100644 --- a/Source/Contents/Effects/CellRangeEffect.cpp +++ b/Source/Contents/Effects/CellRangeEffect.cpp @@ -59,8 +59,8 @@ void CCellRangeEffect::SetCellTexture(CParticle* particle) { // OFFSET: 0x00B433E0 // FUNCTION: fn_18877 void CCellRangeEffect::Close() { - for (CParticle* particle : this->particles) { - FreeParticle(particle); + for (auto it = this->particles.begin(); it != this->particles.end(); ++it) { + FreeParticle(*it); } this->particles.clear(); @@ -132,7 +132,8 @@ void CCellRangeEffect::Slot03() { // OFFSET: 0x00B43920 // FUNCTION: fn_18881 void CCellRangeEffect::Slot04() { - for (CParticle* particle : this->particles) { + for (auto it = this->particles.begin(); it != this->particles.end(); ++it) { + CParticle* particle = *it; if (particle) { this->SetCellTexture(particle); particle->Render(false, 0.0f, 1.0f, 0.0f, 1.0f, false, true);