shithub: choc

Download patch

ref: f128ae0e91dc51fded967b692db87d5f2bcd830a
parent: 37155e12929d38af0bce752edd9da474c7173367
author: Simon Howard <fraggle@gmail.com>
date: Mon Apr 16 07:34:26 EDT 2007

Fix crash: don't check for client resends after they have disconnected.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 870

--- a/src/net_server.c
+++ b/src/net_server.c
@@ -1514,7 +1514,7 @@
 
         for (i=0; i<MAXPLAYERS; ++i)
         {
-            if (sv_players[i] != NULL)
+            if (sv_players[i] != NULL && ClientConnected(sv_players[i]))
             {
                 NET_SV_CheckResends(sv_players[i]);
             }