diff --git a/src/animation/AnimBlendNode.cpp b/src/animation/AnimBlendNode.cpp index 62423004..d2a8dd41 100644 --- a/src/animation/AnimBlendNode.cpp +++ b/src/animation/AnimBlendNode.cpp @@ -308,9 +308,9 @@ CAnimBlendNode::GetEndTranslationCompressed(CVector &trans, float weight) if(blend > 0.0f){ KeyFrameTransCompressed *kf = (KeyFrameTransCompressed*)sequence->GetKeyFrameCompressed(sequence->numFrames-1); if(sequence->type & CAnimBlendSequence::KF_TRANS){ - CVector trans; - kf->GetTranslation(&trans); - trans = trans * blend; + CVector pos; + kf->GetTranslation(&pos); + trans = pos * blend; } } }