fix compiler warning fr 64 bit

pull/1832/head
Kim Kulling 2018-03-13 18:19:10 +01:00
parent f11d4902c6
commit 6b9add5594
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ public:
std::copy( mMeshes.begin(), mMeshes.end(), scene->mMeshes);
scene->mNumMaterials = mMatArray.size();
scene->mNumMaterials = static_cast<unsigned int>( mMatArray.size() );
if ( 0 != scene->mNumMaterials ) {
scene->mMaterials = new aiMaterial*[ scene->mNumMaterials ];
std::copy( mMatArray.begin(), mMatArray.end(), scene->mMaterials );