From 13afd9b033aed75c88f6bed5cb1f3b0f442a1b49 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 29 Jan 2020 02:07:51 -0500 Subject: [PATCH] CRealElement: Remove redundant instance() call in CRELifetimeTween::GetValue() This only needs to be called once. --- Runtime/Particle/CRealElement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/Particle/CRealElement.cpp b/Runtime/Particle/CRealElement.cpp index 322603ecc..313aace09 100644 --- a/Runtime/Particle/CRealElement.cpp +++ b/Runtime/Particle/CRealElement.cpp @@ -55,7 +55,7 @@ bool CREKeyframeEmitter::GetValue(int frame, float& valOut) const { } bool CRELifetimeTween::GetValue(int frame, float& valOut) const { - float ltFac = frame / CParticleGlobals::instance()->instance()->m_ParticleLifetimeReal; + float ltFac = frame / CParticleGlobals::instance()->m_ParticleLifetimeReal; float a, b; x4_a->GetValue(frame, a); x8_b->GetValue(frame, b);