From 99022bf990aefc0bd6b382c69d6be3cde03467b6 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 12:16:11 +0000 Subject: [PATCH] Decompile fn_18809 (RandomRange) Batch #13244 by cremane: 1 byte-identical, 0 confirmed by peer review. - fn_18809 RandomRange: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/Contents/Effects/Particle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Contents/Effects/Particle.cpp b/Source/Contents/Effects/Particle.cpp index 4cd6af37..f3bd8425 100644 --- a/Source/Contents/Effects/Particle.cpp +++ b/Source/Contents/Effects/Particle.cpp @@ -86,7 +86,7 @@ float RandomRange(float minimum, float maximum) { const int low = static_cast(minimum * 10.0f); const int value = rand(); - const int span = std::abs(low + static_cast(maximum * -10.0f)) + 1; + const int span = std::abs(-low - static_cast(maximum * -10.0f)) + 1; return static_cast(value % span + low) * 0.1f; }