From 3c78eaaa49f790cc705c316cca4e376e9f79e524 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 7 May 2007 21:50:31 +0000 Subject: [PATCH] should fix hikaru's seg --- libs/audio/renderer/snd_channels.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/audio/renderer/snd_channels.c b/libs/audio/renderer/snd_channels.c index d1c868824..7b6be1c80 100644 --- a/libs/audio/renderer/snd_channels.c +++ b/libs/audio/renderer/snd_channels.c @@ -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; }