Explorar o código

BVH: Initialize all members of Node in constructor

Turo Lamminen %!s(int64=7) %!d(string=hai) anos
pai
achega
cfcaf3e97b
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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) { }
     };