mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2024-11-23 04:12:42 +00:00
fixed FS_FileForHandle's range check
This commit is contained in:
parent
2fd422c053
commit
439177057c
1 changed files with 2 additions and 2 deletions
|
@ -327,8 +327,8 @@ static fileHandle_t FS_HandleForFile()
|
|||
|
||||
static FILE* FS_FileForHandle( fileHandle_t f )
|
||||
{
|
||||
if ( f < 0 || f > MAX_FILE_HANDLES ) {
|
||||
Com_Error( ERR_DROP, "FS_FileForHandle: out of reange" );
|
||||
if ( f < 0 || f >= MAX_FILE_HANDLES ) {
|
||||
Com_Error( ERR_DROP, "FS_FileForHandle: out of range" );
|
||||
}
|
||||
if (fsh[f].zipFile == qtrue) {
|
||||
Com_Error( ERR_DROP, "FS_FileForHandle: can't get FILE on zip file" );
|
||||
|
|
Loading…
Reference in a new issue