diff options
Diffstat (limited to 'src/client/snd_mix.c')
-rw-r--r-- | src/client/snd_mix.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/snd_mix.c b/src/client/snd_mix.c index 3c2fd240..faa0044c 100644 --- a/src/client/snd_mix.c +++ b/src/client/snd_mix.c @@ -712,6 +712,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 ) { |