[quake3-commits] r2036 - trunk/code/game

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Jun 16 17:53:41 EDT 2011


Author: thilo
Date: 2011-06-16 17:53:41 -0400 (Thu, 16 Jun 2011)
New Revision: 2036

Modified:
   trunk/code/game/g_main.c
Log:
Patch from Tremulous / description from Zack Middleton: (#5041)

Clear game logfile handle after closing file.

Game does not clear logFile handle when closing file. Might be an issue if
G_LogPrintf is called after this.

Patch from tremulous http://svn.icculus.org/tremulous?view=rev&revision=2041


Modified: trunk/code/game/g_main.c
===================================================================
--- trunk/code/game/g_main.c	2011-06-16 21:49:33 UTC (rev 2035)
+++ trunk/code/game/g_main.c	2011-06-16 21:53:41 UTC (rev 2036)
@@ -524,6 +524,7 @@
 		G_LogPrintf("ShutdownGame:\n" );
 		G_LogPrintf("------------------------------------------------------------\n" );
 		trap_FS_FCloseFile( level.logFile );
+		level.logFile = 0;
 	}
 
 	// write all the client session data so we can get it back



More information about the quake3-commits mailing list