From 9c1e03a21b603145a21b74eb6919f9fb272a0be9 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Thu, 19 Apr 2012 02:27:10 +0000 Subject: [PATCH] - In S_Shutdown(), stop the song and forget traces of it so that people who feel like setting snd_musicvolume in their atexit don't crash because it tries to restart the song at the new volume. SVN r3570 (trunk) --- src/s_sound.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/s_sound.cpp b/src/s_sound.cpp index 8b27a5ba3..212658a13 100644 --- a/src/s_sound.cpp +++ b/src/s_sound.cpp @@ -365,6 +365,9 @@ void S_Shutdown () delete PlayList; PlayList = NULL; } + S_StopMusic (true); + mus_playing.name = ""; + LastSong = ""; } //==========================================================================