Merge pull request #772 from abma/master

fix new / delete missmatch
pull/800/head
Kim Kulling 2016-01-27 17:19:52 +01:00
commit ce9ae0ae53
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ void SplitLargeMeshesProcess_Triangle::UpdateNode(aiNode* pcNode,
}
// now build the new list
delete pcNode->mMeshes;
delete[] pcNode->mMeshes;
pcNode->mNumMeshes = (unsigned int)aiEntries.size();
pcNode->mMeshes = new unsigned int[pcNode->mNumMeshes];