Don't mix sfx with NULL soundData

Caused a crash. Already done for looping sounds.
This commit is contained in:
Zack Middleton 2014-03-11 16:44:50 -05:00
parent 63d1911c18
commit a167110f43

View file

@ -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 ) {