Fixed: Initialize all members in SMDImporter
parent
e584fbdf47
commit
85f3b38643
|
@ -75,6 +75,14 @@ static const aiImporterDesc desc = {
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
// Constructor to be privately used by Importer
|
// Constructor to be privately used by Importer
|
||||||
SMDImporter::SMDImporter()
|
SMDImporter::SMDImporter()
|
||||||
|
: configFrameID(),
|
||||||
|
mBuffer(),
|
||||||
|
pScene(),
|
||||||
|
iFileSize(),
|
||||||
|
iSmallestFrame(),
|
||||||
|
dLengthOfAnim(),
|
||||||
|
bHasUVs(),
|
||||||
|
iLineNumber()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
|
@ -694,7 +702,7 @@ void SMDImporter::ParseFile()
|
||||||
{
|
{
|
||||||
if(!SkipSpacesAndLineEnd(szCurrent,&szCurrent)) break;
|
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 (TokenMatch(szCurrent,"version",7))
|
||||||
{
|
{
|
||||||
if(!SkipSpaces(szCurrent,&szCurrent)) break;
|
if(!SkipSpaces(szCurrent,&szCurrent)) break;
|
||||||
|
|
Loading…
Reference in New Issue