소스 검색

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;
     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 */