浏览代码

BVH: Initialize all members of Node in constructor

Turo Lamminen 7 年之前
父节点
当前提交
cfcaf3e97b
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      code/BVHLoader.h

+ 4 - 1
code/BVHLoader.h

@@ -84,7 +84,10 @@ class BVHLoader : public BaseImporter
         std::vector<ChannelType> mChannels;
         std::vector<float> mChannelValues; // motion data values for that node. Of size NumChannels * NumFrames
 
-        Node() { }
+        Node()
+        : mNode(nullptr)
+        { }
+
         explicit Node( const aiNode* pNode) : mNode( pNode) { }
     };