diff --git a/code/ASELoader.cpp b/code/ASELoader.cpp index 0f04d851e..998571089 100644 --- a/code/ASELoader.cpp +++ b/code/ASELoader.cpp @@ -1152,7 +1152,7 @@ void ASEImporter::ConvertMeshes(ASE::Mesh& mesh, std::vector& avOutMesh // copy vertex bones if (!mesh.mBones.empty() && !mesh.mBoneVertices.empty()) { - std::vector* avBonesOut = new std::vector[mesh.mBones.size()]; + std::vector > avBonesOut( mesh.mBones.size() ); // find all vertex weights for this bone unsigned int quak = 0; @@ -1188,9 +1188,6 @@ void ASEImporter::ConvertMeshes(ASE::Mesh& mesh, std::vector& avOutMesh ++pcBone; } } - - // delete allocated storage - delete[] avBonesOut; } } }