summaryrefslogtreecommitdiff
path: root/src/qcommon
diff options
context:
space:
mode:
authorZack Middleton <zturtleman@gmail.com>2012-11-18 19:09:54 +0000
committerTim Angus <tim@ngus.net>2013-01-12 21:24:47 +0000
commitb85440e07f3d91e30bcf36b1e95310fd1d5ee4b5 (patch)
tree5aadbeb23b8f294ab2ecd84d5fc63f72309364b1 /src/qcommon
parenta8a2e4faf5844aa5017b4a1a400509e434752b33 (diff)
Fix some "> MAX_*" to be ">= MAX_*".
Diffstat (limited to 'src/qcommon')
-rw-r--r--src/qcommon/files.c2
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) {