From a167110f43c7c606c24aacb68d63240f2ee9fe66 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Tue, 11 Mar 2014 16:44:50 -0500 Subject: [PATCH] Don't mix sfx with NULL soundData Caused a crash. Already done for looping sounds. --- code/client/snd_mix.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/client/snd_mix.c b/code/client/snd_mix.c index 38bd0aaea1..f4fa01a45a 100644 --- a/code/client/snd_mix.c +++ b/code/client/snd_mix.c @@ -711,6 +711,10 @@ void S_PaintChannels( int endtime ) { ltime = s_paintedtime; sc = ch->thesfx; + if (sc->soundData==NULL || sc->soundLength==0) { + continue; + } + sampleOffset = ltime - ch->startSample; count = end - ltime; if ( sampleOffset + count > sc->soundLength ) {