Browse Source

BVH: Initialize all members of Node in constructor

Turo Lamminen 7 năm trước cách đây
mục cha
commit
cfcaf3e97b
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  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) { }
     };