From 2af4247260892ba5ad97e69bfdeef795b33e90e5 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Mon, 11 Sep 2023 10:51:51 +0200 Subject: [PATCH] Fix: Fix compilation for clang 14.0.3 (#5223) * Fix: Fix compilation for clang 14.0.3 - closes https://github.com/assimp/assimp/issues/5203 * Update mesh.h * Update mesh.h Fix a typo. --- include/assimp/mesh.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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