From: havoc Date: Sat, 22 Oct 2011 00:01:07 +0000 (+0000) Subject: don't crash when .clientcamera is set on a botclient X-Git-Tag: xonotic-v0.6.0~163^2~100 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7397cf446562edf35f00217a2ed5fbac9be38c72;p=xonotic%2Fdarkplaces.git don't crash when .clientcamera is set on a botclient git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11457 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sv_main.c b/sv_main.c index a223b7c5..406bde3e 100644 --- a/sv_main.c +++ b/sv_main.c @@ -2487,7 +2487,7 @@ static void SV_UpdateToReliableMessages (void) clientcamera = PRVM_NUM_FOR_EDICT(host_client->edict); host_client->clientcamera = clientcamera; - if (oldclientcamera != host_client->clientcamera) + if (oldclientcamera != host_client->clientcamera && host_client->netconnection) { MSG_WriteByte(&host_client->netconnection->message, svc_setview); MSG_WriteShort(&host_client->netconnection->message, host_client->clientcamera);