Browse Source

add init list for metadatatype.

Kim Kulling 5 years ago
parent
commit
3b4a9812e5
1 changed files with 6 additions and 0 deletions
  1. 6 0
      include/assimp/metadata.h

+ 6 - 0
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