[nexuiz-commits] r6701 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun May 10 15:09:46 EDT 2009


Author: div0
Date: 2009-05-10 15:09:43 -0400 (Sun, 10 May 2009)
New Revision: 6701

Modified:
   trunk/data/qcsrc/server/cl_client.qc
Log:
hit plot fix of closing file handle -1


Modified: trunk/data/qcsrc/server/cl_client.qc
===================================================================
--- trunk/data/qcsrc/server/cl_client.qc	2009-05-10 18:56:07 UTC (rev 6700)
+++ trunk/data/qcsrc/server/cl_client.qc	2009-05-10 19:09:43 UTC (rev 6701)
@@ -1378,8 +1378,11 @@
 		return;
 	}
 
-	fclose(self.hitplotfh);
-	self.hitplotfh = -1;
+	if(self.hitplotfh >= 0)
+	{
+		fclose(self.hitplotfh);
+		self.hitplotfh = -1;
+	}
 
 	bot_clientdisconnect();
 



More information about the nexuiz-commits mailing list