Quellcode durchsuchen

Initialize all members of aiMeshKey in constructor

Turo Lamminen vor 7 Jahren
Ursprung
Commit
123b9ca71a
1 geänderte Dateien mit 4 neuen und 1 gelöschten Zeilen
  1. 4 1
      include/assimp/anim.h

+ 4 - 1
include/assimp/anim.h

@@ -162,7 +162,10 @@ struct aiMeshKey
 
 #ifdef __cplusplus
 
-    aiMeshKey() {
+    aiMeshKey()
+    : mTime(0.0)
+    , mValue(0)
+    {
     }
 
     /** Construction from a given time and key value */