Merge pull request #2908 from malortie/hl1-mdl-file-size-too-small2
[MDL] Updated header to use when checking file size. (Redone)pull/2887/head^2
commit
0a9d6f15f3
|
@ -179,9 +179,9 @@ void MDLImporter::InternReadFile( const std::string& pFile,
|
||||||
}
|
}
|
||||||
|
|
||||||
// This should work for all other types of MDL files, too ...
|
// This should work for all other types of MDL files, too ...
|
||||||
// the quake header is one of the smallest, afaik
|
// the HL1 sequence group header is one of the smallest, afaik
|
||||||
iFileSize = (unsigned int)file->FileSize();
|
iFileSize = (unsigned int)file->FileSize();
|
||||||
if( iFileSize < sizeof(MDL::Header)) {
|
if( iFileSize < sizeof(MDL::HalfLife::SequenceHeader_HL1)) {
|
||||||
throw DeadlyImportError( "MDL File is too small.");
|
throw DeadlyImportError( "MDL File is too small.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue