diff --git a/code/SplitLargeMeshes.cpp b/code/SplitLargeMeshes.cpp index e54f515eb..00bdc2ee3 100644 --- a/code/SplitLargeMeshes.cpp +++ b/code/SplitLargeMeshes.cpp @@ -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];