diff options
author | Simon Howard | 2006-02-23 19:15:18 +0000 |
---|---|---|
committer | Simon Howard | 2006-02-23 19:15:18 +0000 |
commit | 523df27f9a7eac1f21ddddb743f21b98a4667c81 (patch) | |
tree | 7668c7161027bf00d4bf15965fbfcc6b64dd6562 /src | |
parent | d23078c1452d4a3f3dc123265924e47f0be2217e (diff) | |
download | chocolate-doom-523df27f9a7eac1f21ddddb743f21b98a4667c81.tar.gz chocolate-doom-523df27f9a7eac1f21ddddb743f21b98a4667c81.tar.bz2 chocolate-doom-523df27f9a7eac1f21ddddb743f21b98a4667c81.zip |
Fix crash when NOT recording lowres
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 380
Diffstat (limited to 'src')
-rw-r--r-- | src/net_server.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/net_server.c b/src/net_server.c index 8ee33d93..64f85e4b 100644 --- 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 @@ static void NET_SV_ParseGameStart(net_packet_t *packet, net_client_t *client) 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; |