r3949 - trunk/data/qcsrc/server
    DONOTREPLY at icculus.org 
    DONOTREPLY at icculus.org
       
    Sun Jul 27 08:48:04 EDT 2008
    
    
  
Author: div0
Date: 2008-07-27 08:48:04 -0400 (Sun, 27 Jul 2008)
New Revision: 3949
Modified:
   trunk/data/qcsrc/server/cl_client.qc
Log:
fix crash when ClientDisconnect happened without ClientConnect (LordHavoc: why?)
Modified: trunk/data/qcsrc/server/cl_client.qc
===================================================================
--- trunk/data/qcsrc/server/cl_client.qc	2008-07-27 11:33:06 UTC (rev 3948)
+++ trunk/data/qcsrc/server/cl_client.qc	2008-07-27 12:48:04 UTC (rev 3949)
@@ -1222,7 +1222,10 @@
 	}
 	*/
 
-	PlayerScore_Detach(self);
+	if(self.flags & FL_CLIENT)
+		PlayerScore_Detach(self);
+	else
+		print("Warning: ClientDisconnect without ClientConnect\n");
 
 	if(self.netname_previous)
 		strunzone(self.netname_previous);
    
    
More information about the nexuiz-commits
mailing list