From 4a7450ddbec2857dc585078f36234f105e52d344 Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 11 Feb 2006 22:49:59 +0000 Subject: [PATCH] fix a crash in SV_ConnectClient on bots git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5963 d7cf8633-e32d-0410-b094-e92efae38249 --- sv_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.2