From 3b4a9812e56a1f364e393a9dfc9f909055c9bf7c Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Mon, 4 May 2020 20:40:08 +0200 Subject: [PATCH] add init list for metadatatype. --- include/assimp/metadata.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/assimp/metadata.h b/include/assimp/metadata.h index 3a50e3b58..d3e22b5ad 100644 --- a/include/assimp/metadata.h +++ b/include/assimp/metadata.h @@ -86,6 +86,12 @@ typedef enum aiMetadataType { struct aiMetadataEntry { aiMetadataType mType; void *mData; + + aiMetadataEntry() : + mType(AI_META_MAX), + mData( nullptr ) { + // empty + } }; #ifdef __cplusplus