Fix eternal loop
parent
edb8375702
commit
093e35dd54
|
@ -837,8 +837,7 @@ void SMDImporter::ParseNodeInfo(const char* szCurrent, const char** szCurrentOut
|
||||||
unsigned int iBone = 0;
|
unsigned int iBone = 0;
|
||||||
SkipSpacesAndLineEnd(szCurrent,&szCurrent);
|
SkipSpacesAndLineEnd(szCurrent,&szCurrent);
|
||||||
if ( !ParseUnsignedInt(szCurrent,&szCurrent,iBone) || !SkipSpaces(szCurrent,&szCurrent)) {
|
if ( !ParseUnsignedInt(szCurrent,&szCurrent,iBone) || !SkipSpaces(szCurrent,&szCurrent)) {
|
||||||
LogErrorNoThrow("Unexpected EOF/EOL while parsing bone index");
|
throw DeadlyImportError("Unexpected EOF/EOL while parsing bone index");
|
||||||
SMDI_PARSE_RETURN;
|
|
||||||
}
|
}
|
||||||
if (iBone == UINT_MAX) {
|
if (iBone == UINT_MAX) {
|
||||||
LogErrorNoThrow("Invalid bone number while parsing bone index");
|
LogErrorNoThrow("Invalid bone number while parsing bone index");
|
||||||
|
|
Loading…
Reference in New Issue