From: Tobias Markus Date: Tue, 17 Mar 2015 16:42:40 +0000 (+0100) Subject: Stop music, so that its handle can be freed, before playing other music on sector... X-Git-Url: https://git.octo.it/?p=supertux.git;a=commitdiff_plain;h=3bcc8778012426d273ce88e653a3e4f97351a2e1 Stop music, so that its handle can be freed, before playing other music on sector change --- diff --git a/src/supertux/sector.cpp b/src/supertux/sector.cpp index 351fe3123..7573a9592 100644 --- a/src/supertux/sector.cpp +++ b/src/supertux/sector.cpp @@ -1506,6 +1506,7 @@ Sector::resume_music() } else { + SoundManager::current()->stop_music(); SoundManager::current()->play_music(music, true); } }