浏览代码

Initialize all members of aiMeshKey in constructor

Turo Lamminen 7 年之前
父节点
当前提交
123b9ca71a
共有 1 个文件被更改,包括 4 次插入1 次删除
  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 */