mirror of
https://github.com/UberGames/ioef.git
synced 2025-01-31 04:50:37 +00:00
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;
|
||||
sc = ch->thesfx;
|
||||
|
||||
if (sc->soundData==NULL || sc->soundLength==0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
sampleOffset = ltime - ch->startSample;
|
||||
count = end - ltime;
|
||||
if ( sampleOffset + count > sc->soundLength ) {
|
||||
|
|
Loading…
Reference in a new issue