Don't mix sfx with NULL soundData
Caused a crash. Already done for looping sounds.
This commit is contained in:
1 parent
63d1911c18
commit
a167110f43
1 file changed
+4
@@ -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 ) {
|
||||
|
||||
Reference in new issue
Block a user