diff --git a/code/LWOAnimation.cpp b/code/LWOAnimation.cpp index f41853dad..10bc54b16 100644 --- a/code/LWOAnimation.cpp +++ b/code/LWOAnimation.cpp @@ -565,7 +565,7 @@ void AnimResolver::ExtractAnimChannel(aiNodeAnim** out, unsigned int flags /*= 0 std::vector keys; GetKeys(keys,trans_x,trans_y,trans_z,flags); - anim->mPositionKeys = new aiVectorKey[ anim->mNumPositionKeys = keys.size() ]; + anim->mPositionKeys = new aiVectorKey[ anim->mNumPositionKeys = static_cast(keys.size()) ]; std::copy(keys.begin(),keys.end(),anim->mPositionKeys); } @@ -574,7 +574,7 @@ void AnimResolver::ExtractAnimChannel(aiNodeAnim** out, unsigned int flags /*= 0 std::vector keys; GetKeys(keys,rotat_x,rotat_y,rotat_z,flags); - anim->mRotationKeys = new aiQuatKey[ anim->mNumRotationKeys = keys.size() ]; + anim->mRotationKeys = new aiQuatKey[ anim->mNumRotationKeys = static_cast(keys.size()) ]; // convert heading, pitch, bank to quaternion // mValue.x=Heading=Rot(Y), mValue.y=Pitch=Rot(X), mValue.z=Bank=Rot(Z) @@ -594,7 +594,7 @@ void AnimResolver::ExtractAnimChannel(aiNodeAnim** out, unsigned int flags /*= 0 std::vector keys; GetKeys(keys,scale_x,scale_y,scale_z,flags); - anim->mScalingKeys = new aiVectorKey[ anim->mNumScalingKeys = keys.size() ]; + anim->mScalingKeys = new aiVectorKey[ anim->mNumScalingKeys = static_cast(keys.size()) ]; std::copy(keys.begin(),keys.end(),anim->mScalingKeys); } } diff --git a/code/LWOLoader.cpp b/code/LWOLoader.cpp index 222ec8e2c..36daa0428 100644 --- a/code/LWOLoader.cpp +++ b/code/LWOLoader.cpp @@ -426,7 +426,7 @@ void LWOImporter::InternReadFile( const std::string& pFile, } // Generate nodes to render the mesh. Store the source layer in the mParent member of the nodes - unsigned int num = apcMeshes.size() - meshStart; + unsigned int num = static_cast(apcMeshes.size() - meshStart); if (layer.mName != "" || num > 0) { aiNode* pcNode = new aiNode(); apcNodes[layer.mIndex] = pcNode;