r875 - trunk/code/qcommon

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Aug 27 11:34:44 EDT 2006


Author: thilo
Date: 2006-08-27 11:34:44 -0400 (Sun, 27 Aug 2006)
New Revision: 875

Modified:
   trunk/code/qcommon/files.c
Log:
There are actually files that can have a length of 0 so this in-use-check was just wrong.


Modified: trunk/code/qcommon/files.c
===================================================================
--- trunk/code/qcommon/files.c	2006-08-27 15:31:03 UTC (rev 874)
+++ trunk/code/qcommon/files.c	2006-08-27 15:34:44 UTC (rev 875)
@@ -2720,7 +2720,7 @@
 	int	i;
 
 	for(i = 0; i < MAX_FILE_HANDLES; i++) {
-		if (fsh[i].fileSize) {
+		if (fsh[i].handleFiles.file.o) {
 			FS_FCloseFile(i);
 		}
 	}




More information about the quake3-commits mailing list