Prechádzať zdrojové kódy

[ 2659155 ] Missing initializations

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@353 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
aramis_acg 16 rokov pred
rodič
commit
c42611ea5e
2 zmenil súbory, kde vykonal 5 pridanie a 1 odobranie
  1. 4 1
      code/DefaultLogger.cpp
  2. 1 0
      code/ObjFileData.h

+ 4 - 1
code/DefaultLogger.cpp

@@ -313,7 +313,10 @@ DefaultLogger::DefaultLogger(LogSeverity severity)
 
 	:	m_Severity	( severity )
 	,	noRepeatMsg	(false)
-{}
+	,	lastLen( 0 )
+{
+	lastMsg[0] = '\0';
+}
 
 // ----------------------------------------------------------------------------------
 //	Destructor

+ 1 - 0
code/ObjFileData.h

@@ -177,6 +177,7 @@ struct Material
 		:	diffuse (0.6f,0.6f,0.6f)
 		,	ior		(1.f)
 		,	alpha	(1.f)
+		,	shineness (0.0f)
 		,	illumination_model (1)
 	{
 		// empty