commit 130c5a5c991a608a6f7c2fb5da691768b5a164c9
Author: James Haley <haleyjd@hotmail.com>
AuthorDate: Fri Aug 26 00:36:40 2016 -0500
Commit: James Haley <haleyjd@hotmail.com>
CommitDate: Fri Aug 26 00:36:40 2016 -0500
Get rid of debug comment, and move call up
---
src/i_sdlsound.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/i_sdlsound.c b/src/i_sdlsound.c
index e97d11a9..f01ca207 100644
--- a/src/i_sdlsound.c
+++ b/src/i_sdlsound.c
@@ -343,14 +343,13 @@ static void ReleaseSoundOnChannel(int channel)
{
allocated_sound_t *snd = channels_playing[channel];
+ Mix_HaltChannel(channel);
+
if (snd == NULL)
{
return;
}
- // DEBUG
- Mix_HaltChannel(channel);
-
channels_playing[channel] = NULL;
UnlockAllocatedSound(snd);