From 5cc43ecfadbdd1db2365a2b094ab07ef6a9f4db6 Mon Sep 17 00:00:00 2001 From: Richard Date: Tue, 30 Jun 2015 23:29:19 -0600 Subject: [PATCH] Fixed: Initialize members in XFileHelper --- code/XFileHelper.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 */