diff --git a/code/TargetAnimation.cpp b/code/TargetAnimation.cpp index 97b15edbb..ecf6f0dcf 100644 --- a/code/TargetAnimation.cpp +++ b/code/TargetAnimation.cpp @@ -100,8 +100,8 @@ void KeyIterator::operator ++() // to our current position on the time line double d0,d1; - d0 = objPos->at ( std::min ( nextObjPos, objPos->size()-1) ).mTime; - d1 = targetObjPos->at( std::min ( nextTargetObjPos, targetObjPos->size()-1) ).mTime; + d0 = objPos->at ( std::min ( nextObjPos, static_cast(objPos->size()-1)) ).mTime; + d1 = targetObjPos->at( std::min ( nextTargetObjPos, static_cast(targetObjPos->size()-1)) ).mTime; // Easiest case - all are identical. In this // case we don't need to interpolate so we can