diff options
Diffstat (limited to 'src/qcommon')
-rw-r--r-- | src/qcommon/files.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qcommon/files.c b/src/qcommon/files.c index a7e4f4fb..a71c9b70 100644 --- a/src/qcommon/files.c +++ b/src/qcommon/files.c @@ -373,7 +373,7 @@ static fileHandle_t FS_HandleForFile(void) { } static FILE *FS_FileForHandle( fileHandle_t f ) { - if ( f < 1 || f > MAX_FILE_HANDLES ) { + if ( f < 1 || f >= MAX_FILE_HANDLES ) { Com_Error( ERR_DROP, "FS_FileForHandle: out of range" ); } if (fsh[f].zipFile == qtrue) { |