Fixed: Initialize all members in SMDImporter

This commit is contained in:
Richard
2015-07-02 20:51:46 -06:00
parent e584fbdf47
commit 85f3b38643
+9 -1
View File
@@ -75,6 +75,14 @@ static const aiImporterDesc desc = {
// ------------------------------------------------------------------------------------------------
// Constructor to be privately used by Importer
SMDImporter::SMDImporter()
: configFrameID(),
mBuffer(),
pScene(),
iFileSize(),
iSmallestFrame(),
dLengthOfAnim(),
bHasUVs(),
iLineNumber()
{}
// ------------------------------------------------------------------------------------------------
@@ -694,7 +702,7 @@ void SMDImporter::ParseFile()
{
if(!SkipSpacesAndLineEnd(szCurrent,&szCurrent)) break;
// "version <n> \n", <n> should be 1 for hl and hl² SMD files
// "version <n> \n", <n> should be 1 for hl and hl� SMD files
if (TokenMatch(szCurrent,"version",7))
{
if(!SkipSpaces(szCurrent,&szCurrent)) break;