From e65a67078ad9caa8295f863be1bf465794ad2ed9 Mon Sep 17 00:00:00 2001 From: divverent Date: Sun, 1 Apr 2012 13:45:52 +0000 Subject: [PATCH] another NULL dereference fixed git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11781 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=d39ae1fecb0388a2727c3623e7bcf8e66659710c --- snd_3dras.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.2