From b85440e07f3d91e30bcf36b1e95310fd1d5ee4b5 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Sun, 18 Nov 2012 19:09:54 +0000 Subject: Fix some "> MAX_*" to be ">= MAX_*". --- src/qcommon/files.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qcommon') 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) { -- cgit