From ae88e719ff7a2acb7a793156e21b6743a8e6efcd Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Wed, 17 Feb 2016 00:17:12 -0800 Subject: [PATCH] Fix CVEColorToVector --- Runtime/Particle/CVectorElement.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; }