浏览代码

Fixed: Initialize members in XFileHelper

Richard 10 年之前
父节点
当前提交
5cc43ecfad
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      code/XFileHelper.h

+ 6 - 2
code/XFileHelper.h

@@ -87,9 +87,13 @@ struct Material
     aiColor3D mEmissive;
     aiColor3D mEmissive;
     std::vector<TexEntry> mTextures;
     std::vector<TexEntry> mTextures;
 
 
-  size_t sceneIndex; ///< the index under which it was stored in the scene's material list
+    size_t sceneIndex; ///< the index under which it was stored in the scene's material list
 
 
-    Material() { mIsReference = false; sceneIndex = SIZE_MAX; }
+    Material()
+        : mIsReference(false),
+        mSpecularExponent(),
+        sceneIndex(SIZE_MAX)
+    {}
 };
 };
 
 
 /** Helper structure to represent a bone weight */
 /** Helper structure to represent a bone weight */