Merge branch 'master' into kimkulling-travis

pull/2887/head
Kim Kulling 2020-01-17 19:43:00 +01:00 committed by GitHub
commit a6e78f8024
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -179,9 +179,9 @@ void MDLImporter::InternReadFile( const std::string& pFile,
}
// 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();
if( iFileSize < sizeof(MDL::Header)) {
if( iFileSize < sizeof(MDL::HalfLife::SequenceHeader_HL1)) {
throw DeadlyImportError( "MDL File is too small.");
}