diff --git a/include/assimp/mesh.h b/include/assimp/mesh.h index 878620e4c..3ef94e606 100644 --- a/include/assimp/mesh.h +++ b/include/assimp/mesh.h @@ -987,7 +987,10 @@ struct aiMesh { if (mTextureCoordsNames == nullptr) { // Construct and null-init array - mTextureCoordsNames = new aiString *[AI_MAX_NUMBER_OF_TEXTURECOORDS] {}; + mTextureCoordsNames = new aiString *[AI_MAX_NUMBER_OF_TEXTURECOORDS]; + for (size_t i=0; i