diff --git a/code/XFileHelper.h b/code/XFileHelper.h index e34b2b095..cb5d9abb0 100644 --- a/code/XFileHelper.h +++ b/code/XFileHelper.h @@ -87,9 +87,13 @@ struct Material aiColor3D mEmissive; std::vector 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 */