summaryrefslogtreecommitdiff
path: root/src/qcommon
diff options
context:
space:
mode:
Diffstat (limited to 'src/qcommon')
-rw-r--r--src/qcommon/files.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/qcommon/files.c b/src/qcommon/files.c
index a71c9b70..4e1aef13 100644
--- a/src/qcommon/files.c
+++ b/src/qcommon/files.c
@@ -1322,10 +1322,17 @@ long FS_FOpenFileRead(const char *filename, fileHandle_t *file, qboolean uniqueF
fprintf(missingFiles, "%s\n", filename);
#endif
- if(file)
- *file = 0;
-
- return -1;
+ if(file)
+ {
+ *file = 0;
+ return -1;
+ }
+ else
+ {
+ // When file is NULL, we're querying the existance of the file
+ // If we've got here, it doesn't exist
+ return 0;
+ }
}
/*