From 8e89ac234f3be1873ab5d7dcd7447919c589cb52 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 14 Apr 2020 16:11:30 -0400 Subject: [PATCH] CElementGen: Initialize x80_timeDeltaScale on construction Provides deterministic state upon construction, which is nicer for debugging. --- Runtime/Particle/CElementGen.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/Particle/CElementGen.hpp b/Runtime/Particle/CElementGen.hpp index 6e585539a..4441e45db 100644 --- a/Runtime/Particle/CElementGen.hpp +++ b/Runtime/Particle/CElementGen.hpp @@ -60,7 +60,7 @@ private: int x70_internalStartFrame = 0; int x74_curFrame = 0; double x78_curSeconds = 0.f; - float x80_timeDeltaScale; + float x80_timeDeltaScale = 0.f; int x84_prevFrame = -1; bool x88_particleEmission = true; float x8c_generatorRemainder = 0.f;