diff --git a/Runtime/Particle/CColorElement.cpp b/Runtime/Particle/CColorElement.cpp index f48954268..dc777a911 100644 --- a/Runtime/Particle/CColorElement.cpp +++ b/Runtime/Particle/CColorElement.cpp @@ -72,10 +72,11 @@ bool CCEFastConstant::GetValue([[maybe_unused]] int frame, zeus::CColor& valOut) bool CCETimeChain::GetValue(int frame, zeus::CColor& valOut) const { int v; xc_swFrame->GetValue(frame, v); - if (frame >= v) - return x8_b->GetValue(frame, valOut); - else + if (frame < v) { return x4_a->GetValue(frame, valOut); + } else { + return x8_b->GetValue(frame - v, valOut); + } } bool CCEFadeEnd::GetValue(int frame, zeus::CColor& valOut) const {