Przeglądaj źródła

Fixed: Initialize members in ACLoader

Richard 10 lat temu
rodzic
commit
a9a8796f71
2 zmienionych plików z 10 dodań i 0 usunięć
  1. 9 0
      code/ACLoader.cpp
  2. 1 0
      code/ACLoader.h

+ 9 - 0
code/ACLoader.cpp

@@ -129,6 +129,15 @@ static const aiImporterDesc desc = {
 // ------------------------------------------------------------------------------------------------
 // Constructor to be privately used by Importer
 AC3DImporter::AC3DImporter()
+    : buffer(),
+    configSplitBFCull(),
+    configEvalSubdivision(),
+    mNumMeshes(),
+    mLights(),
+    lights(),
+    groups(),
+    polys(),
+    worlds()
 {
     // nothing to be done here
 }

+ 1 - 0
code/ACLoader.h

@@ -130,6 +130,7 @@ public:
             ,   surfaces()
             ,   numRefs (0)
             ,   subDiv  (0)
+            ,   crease()
         {}
 
         // Type description