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
This commit is contained in:
Thilo Schulz 2011-06-16 21:53:41 +00:00
parent b3745b7206
commit 16d2ab5f8b

View file

@ -524,6 +524,7 @@ void G_ShutdownGame( int restart ) {
G_LogPrintf("ShutdownGame:\n" ); G_LogPrintf("ShutdownGame:\n" );
G_LogPrintf("------------------------------------------------------------\n" ); G_LogPrintf("------------------------------------------------------------\n" );
trap_FS_FCloseFile( level.logFile ); trap_FS_FCloseFile( level.logFile );
level.logFile = 0;
} }
// write all the client session data so we can get it back // write all the client session data so we can get it back