aboutsummaryrefslogtreecommitdiffstats
path: root/code/qcommon/files.c
diff options
context:
space:
mode:
authorthilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-08-27 15:34:44 +0000
committerthilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-08-27 15:34:44 +0000
commit0392e2ec916bdd801717e4c61a1e102294964c4d (patch)
tree73d440f92b56c46899652ffa9b8eccf6185c73bb /code/qcommon/files.c
parentfe91302d74f54ab23f3a2d43718eda802276be99 (diff)
downloadioquake3-aero-0392e2ec916bdd801717e4c61a1e102294964c4d.tar.gz
ioquake3-aero-0392e2ec916bdd801717e4c61a1e102294964c4d.zip
There are actually files that can have a length of 0 so this in-use-check was just wrong.
git-svn-id: svn://svn.icculus.org/quake3/trunk@875 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/qcommon/files.c')
-rw-r--r--code/qcommon/files.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/code/qcommon/files.c b/code/qcommon/files.c
index af5518b..0d70db2 100644
--- a/code/qcommon/files.c
+++ b/code/qcommon/files.c
@@ -2720,7 +2720,7 @@ void FS_Shutdown( qboolean closemfp ) {
int i;
for(i = 0; i < MAX_FILE_HANDLES; i++) {
- if (fsh[i].fileSize) {
+ if (fsh[i].handleFiles.file.o) {
FS_FCloseFile(i);
}
}