CRealElement: Remove redundant instance() call in CRELifetimeTween::GetValue()

This only needs to be called once.
This commit is contained in:
Lioncash 2020-01-29 02:07:51 -05:00
parent 7b89a165bf
commit 13afd9b033
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ bool CREKeyframeEmitter::GetValue(int frame, float& valOut) const {
} }
bool CRELifetimeTween::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; float a, b;
x4_a->GetValue(frame, a); x4_a->GetValue(frame, a);
x8_b->GetValue(frame, b); x8_b->GetValue(frame, b);