diff --git a/Runtime/Particle/CVectorElement.cpp b/Runtime/Particle/CVectorElement.cpp index d08c0245e..f9f6369f6 100644 --- a/Runtime/Particle/CVectorElement.cpp +++ b/Runtime/Particle/CVectorElement.cpp @@ -330,9 +330,9 @@ bool CVESubtract::GetValue(int frame, Zeus::CVector3f& valOut) const bool CVEColorToVector::GetValue(int frame, Zeus::CVector3f &valOut) const { - Zeus::CColor black = {0.0, 0.0, 0.0, 1.0}; - x4_a->GetValue(frame, black); - valOut = Zeus::CVector3f{black.r, valOut.y, black.g }; + Zeus::CColor val = {0.0, 0.0, 0.0, 1.0}; + x4_a->GetValue(frame, val); + valOut = Zeus::CVector3f{val.r, val.g, val.b}; return false; }