Stop music, so that its handle can be freed, before playing other music on sector...
authorTobias Markus <tobbi@mozilla-uk.org>
Tue, 17 Mar 2015 16:42:40 +0000 (17:42 +0100)
committerTobias Markus <tobbi@mozilla-uk.org>
Tue, 17 Mar 2015 16:42:40 +0000 (17:42 +0100)
src/supertux/sector.cpp

index 351fe31..7573a95 100644 (file)
@@ -1506,6 +1506,7 @@ Sector::resume_music()
   }
   else
   {
+    SoundManager::current()->stop_music();
     SoundManager::current()->play_music(music, true);
   }
 }