Fix delete / delete[] mismatches in MakeVerboseFormat

pull/1432/head
Turo Lamminen 2017-09-14 10:33:49 +03:00
parent da96b32fb9
commit efd861253d
1 changed files with 2 additions and 2 deletions

View File

@ -193,14 +193,14 @@ bool MakeVerboseFormatProcess::MakeVerboseFormat(aiMesh* pcMesh)
p = 0; p = 0;
while (pcMesh->HasTextureCoords(p)) while (pcMesh->HasTextureCoords(p))
{ {
delete pcMesh->mTextureCoords[p]; delete[] pcMesh->mTextureCoords[p];
pcMesh->mTextureCoords[p] = apvTextureCoords[p]; pcMesh->mTextureCoords[p] = apvTextureCoords[p];
++p; ++p;
} }
p = 0; p = 0;
while (pcMesh->HasVertexColors(p)) while (pcMesh->HasVertexColors(p))
{ {
delete pcMesh->mColors[p]; delete[] pcMesh->mColors[p];
pcMesh->mColors[p] = apvColorSets[p]; pcMesh->mColors[p] = apvColorSets[p];
++p; ++p;
} }