From: havoc Date: Sat, 11 Feb 2006 22:49:59 +0000 (+0000) Subject: fix a crash in SV_ConnectClient on bots X-Git-Tag: xonotic-v0.1.0preview~4346 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4a7450ddbec2857dc585078f36234f105e52d344;p=xonotic%2Fdarkplaces.git fix a crash in SV_ConnectClient on bots git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5963 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sv_main.c b/sv_main.c index 8e68234b..b817cc97 100644 --- a/sv_main.c +++ b/sv_main.c @@ -408,7 +408,8 @@ void SV_ConnectClient (int clientnum, netconn_t *netconnection) strcpy(client->old_name, "unconnected"); client->spawned = false; client->edict = PRVM_EDICT_NUM(clientnum+1); - client->netconnection->message.allowoverflow = true; // we can catch it + if (client->netconnection) + client->netconnection->message.allowoverflow = true; // we can catch it // updated by receiving "rate" command from client client->rate = NET_MINRATE; // no limits for local player