shithub: choc

Download patch

ref: 523df27f9a7eac1f21ddddb743f21b98a4667c81
parent: d23078c1452d4a3f3dc123265924e47f0be2217e
author: Simon Howard <fraggle@gmail.com>
date: Thu Feb 23 14:15:18 EST 2006

Fix crash when NOT recording lowres

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

--- a/src/net_server.c
+++ b/src/net_server.c
@@ -1,7 +1,7 @@
 // Emacs style mode select   -*- C++ -*- 
 //-----------------------------------------------------------------------------
 //
-// $Id: net_server.c 378 2006-02-23 19:12:02Z fraggle $
+// $Id: net_server.c 380 2006-02-23 19:15:18Z fraggle $
 //
 // Copyright(C) 2005 Simon Howard
 //
@@ -21,6 +21,9 @@
 // 02111-1307, USA.
 //
 // $Log$
+// Revision 1.32  2006/02/23 19:15:18  fraggle
+// Fix crash when NOT recording lowres
+//
 // Revision 1.31  2006/02/23 19:12:02  fraggle
 // Add lowres_turn to indicate whether we generate angleturns which are
 // 8-bit as opposed to 16-bit.  This is used when recording demos without
@@ -624,7 +627,7 @@
 
     for (i=0; i<MAXPLAYERS; ++i)
     {
-        if (sv_players[i]->recording_lowres)
+        if (sv_players[i] != NULL && sv_players[i]->recording_lowres)
         {
             settings.lowres_turn = true;
             break;