Browse Source

Fix eternal loop

Alex 2 years ago
parent
commit
093e35dd54
1 changed files with 1 additions and 2 deletions
  1. 1 2
      code/AssetLib/SMD/SMDLoader.cpp

+ 1 - 2
code/AssetLib/SMD/SMDLoader.cpp

@@ -837,8 +837,7 @@ void SMDImporter::ParseNodeInfo(const char* szCurrent, const char** szCurrentOut
     unsigned int iBone  = 0;
     SkipSpacesAndLineEnd(szCurrent,&szCurrent);
     if ( !ParseUnsignedInt(szCurrent,&szCurrent,iBone) || !SkipSpaces(szCurrent,&szCurrent)) {
-        LogErrorNoThrow("Unexpected EOF/EOL while parsing bone index");
-        SMDI_PARSE_RETURN;
+        throw DeadlyImportError("Unexpected EOF/EOL while parsing bone index");
     }
     if (iBone == UINT_MAX) {
         LogErrorNoThrow("Invalid bone number while parsing bone index");