Fixed: Initialize all members in SMDImporter

pull/596/head
Richard 2015-07-01 18:59:18 -06:00
parent e584fbdf47
commit 85f3b38643
1 changed files with 9 additions and 1 deletions

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<EFBFBD> SMD files
if (TokenMatch(szCurrent,"version",7))
{
if(!SkipSpaces(szCurrent,&szCurrent)) break;