From: divverent Date: Sun, 1 Apr 2012 13:45:52 +0000 (+0000) Subject: another NULL dereference fixed X-Git-Tag: xonotic-v0.7.0~174 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e65a67078ad9caa8295f863be1bf465794ad2ed9;p=xonotic%2Fdarkplaces.git another NULL dereference fixed git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11781 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=d39ae1fecb0388a2727c3623e7bcf8e66659710c --- diff --git a/snd_3dras.c b/snd_3dras.c index 8b71d279..140c98fb 100644 --- a/snd_3dras.c +++ b/snd_3dras.c @@ -789,13 +789,13 @@ int S_StartSound_OnEnt (int entnum, int entchannel, sfx_t *sfx, float fvol, floa S_KillChannel(now_c); }else{ //We found no channel .... So we need to make a new one ... channel_new_smart(&prev_c,&now_c); - now_c->entnum =entnum; - now_c->entchannel=entchannel; if(!now_c){ Con_Printf("S_StartSound_OnEnt: could not make new channel_t\n"); channel_delete_and_next(&prev_c,&now_c); return -1; } + now_c->entnum =entnum; + now_c->entchannel=entchannel; } //Lets start the sound on the acquired sound source and channel