diff --git a/code/PretransformVertices.cpp b/code/PretransformVertices.cpp index 90a58e321..bcb3913c3 100644 --- a/code/PretransformVertices.cpp +++ b/code/PretransformVertices.cpp @@ -397,7 +397,7 @@ void PretransformVertices::BuildWCSMeshes(std::vector& out, aiMesh** in out.push_back(ntz); - node->mMeshes[i] = numIn + out.size() - 1; + node->mMeshes[i] = static_cast(numIn + out.size() - 1); } } } @@ -483,7 +483,7 @@ void PretransformVertices::Execute( aiScene* pScene) memcpy(npp,pScene->mMeshes,sizeof(aiMesh*)*pScene->mNumMeshes); memcpy(npp+pScene->mNumMeshes,&apcOutMeshes[0],sizeof(aiMesh*)*apcOutMeshes.size()); - pScene->mNumMeshes += apcOutMeshes.size(); + pScene->mNumMeshes += static_cast(apcOutMeshes.size()); delete[] pScene->mMeshes; pScene->mMeshes = npp; }