fix new / delete missmatch

pull/772/head
abma 2016-01-26 22:47:50 +01:00
parent 11d0085f4d
commit b3b08728fa
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 // now build the new list
delete pcNode->mMeshes; delete[] pcNode->mMeshes;
pcNode->mNumMeshes = (unsigned int)aiEntries.size(); pcNode->mNumMeshes = (unsigned int)aiEntries.size();
pcNode->mMeshes = new unsigned int[pcNode->mNumMeshes]; pcNode->mMeshes = new unsigned int[pcNode->mNumMeshes];