diff --git a/code/SpatialSort.cpp b/code/SpatialSort.cpp index 722ec5f24..e7d64fec5 100644 --- a/code/SpatialSort.cpp +++ b/code/SpatialSort.cpp @@ -108,7 +108,7 @@ void SpatialSort::Append( const aiVector3D* pPositions, unsigned int pNumPositio // store position by index and distance ai_real distance = *vec * mPlaneNormal; - mPositions.push_back( Entry( a+initial, *vec, distance)); + mPositions.push_back( Entry( static_cast(a+initial), *vec, distance)); } if (pFinalize) {