filesystem: zip: remove 'big' block
This commit is contained in:
parent
b42f020ad5
commit
01a33dcf7e
1 changed files with 80 additions and 81 deletions
|
@ -830,8 +830,8 @@ static byte *Zip_LoadFile( const char *path, fs_offset_t *sizeptr, qboolean game
|
|||
|
||||
search = FS_FindFile( path, &index, gamedironly );
|
||||
|
||||
if( search && search->zip )
|
||||
{
|
||||
if( !search || !search->zip )
|
||||
return NULL;
|
||||
|
||||
file = &search->zip->files[index];
|
||||
|
||||
|
@ -943,7 +943,6 @@ static byte *Zip_LoadFile( const char *path, fs_offset_t *sizeptr, qboolean game
|
|||
Con_Reportf( S_ERROR "Zip_LoadFile: %s : file compressed with unknown algorithm.\n", file->name );
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue