Don't mix sfx with NULL soundData
Caused a crash. Already done for looping sounds.
This commit is contained in:
parent
63d1911c18
commit
a167110f43
1 changed files with 4 additions and 0 deletions
|
@ -711,6 +711,10 @@ void S_PaintChannels( int endtime ) {
|
||||||
ltime = s_paintedtime;
|
ltime = s_paintedtime;
|
||||||
sc = ch->thesfx;
|
sc = ch->thesfx;
|
||||||
|
|
||||||
|
if (sc->soundData==NULL || sc->soundLength==0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
sampleOffset = ltime - ch->startSample;
|
sampleOffset = ltime - ch->startSample;
|
||||||
count = end - ltime;
|
count = end - ltime;
|
||||||
if ( sampleOffset + count > sc->soundLength ) {
|
if ( sampleOffset + count > sc->soundLength ) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue