should fix hikaru's seg

This commit is contained in:
Bill Currie 2007-05-07 21:50:31 +00:00 committed by Jeff Teunissen
parent 9609fe8ca4
commit 3c78eaaa49

View file

@ -334,7 +334,7 @@ s_pick_channel (int entnum, int entchannel, int looped)
// check for finished non-looped sounds
for (count = 0, _ch = &dynamic_channels; *_ch; ) {
if ((*_ch)->done) {
if (!(*_ch)->sfx || (*_ch)->done) {
SND_ChannelStop (unlink_channel (_ch));
continue;
}