# STLLoader: avoid potential division by zero.

# irrMeshLoader: fix potentially uninitialized variable.
Thanks to erikbuck for pointing these out (http://sourceforge.net/projects/assimp/forums/forum/817653/topic/4691387).

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1076 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
aramis_acg
2011-09-04 15:09:45 +00:00
parent c01d81c882
commit 4f1a95a584
2 changed files with 4 additions and 2 deletions

View File

@@ -118,7 +118,7 @@ void IRRMeshImporter::InternReadFile( const std::string& pFile,
// temporary data - current mesh buffer
aiMaterial* curMat = NULL;
aiMesh* curMesh = NULL;
unsigned int curMatFlags;
unsigned int curMatFlags = 0;
std::vector<aiVector3D> curVertices,curNormals,curTangents,curBitangents;
std::vector<aiColor4D> curColors;