Explorar o código

Fix crash when trying to load MDL files produced by the half life engine. This sub format is actually not supported, but the attempt to reject it was a crash.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@650 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
aramis_acg %!s(int64=15) %!d(string=hai) anos
pai
achega
0fb732de91
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      code/MDLLoader.cpp

+ 1 - 0
code/MDLLoader.cpp

@@ -1922,6 +1922,7 @@ void MDLImporter::JoinSkins_3DGS_MDL7(
 void MDLImporter::InternReadFile_HL2( )
 void MDLImporter::InternReadFile_HL2( )
 {
 {
 	//const MDL::Header_HL2* pcHeader = (const MDL::Header_HL2*)this->mBuffer;
 	//const MDL::Header_HL2* pcHeader = (const MDL::Header_HL2*)this->mBuffer;
+	throw DeadlyImportError("HL2 MDLs are not implemented");
 }
 }
 
 
 #endif // !! ASSIMP_BUILD_NO_MDL_IMPORTER
 #endif // !! ASSIMP_BUILD_NO_MDL_IMPORTER