MakeVerboseFormat: fix invalid delete statement.
authorKim Kulling <kim.kulling@googlemail.com>
Mon, 29 Aug 2016 17:56:38 +0000 (19:56 +0200)
committerKim Kulling <kim.kulling@googlemail.com>
Mon, 29 Aug 2016 17:56:38 +0000 (19:56 +0200)
code/MakeVerboseFormat.cpp

index d51642c..df3b97a 100644 (file)
@@ -171,7 +171,7 @@ bool MakeVerboseFormatProcess::MakeVerboseFormat(aiMesh* pcMesh)
     // build output vertex weights
     for (unsigned int i = 0;i < pcMesh->mNumBones;++i)
     {
-        delete pcMesh->mBones[i]->mWeights;
+        delete [] pcMesh->mBones[i]->mWeights;
         if (!newWeights[i].empty()) {
             pcMesh->mBones[i]->mWeights = new aiVertexWeight[newWeights[i].size()];
             aiVertexWeight *weightToCopy = &( newWeights[i][0] );