Skip to content

Commit

Permalink
Stop music, so that its handle can be freed, before playing other mus…
Browse files Browse the repository at this point in the history
…ic on sector change
  • Loading branch information
tobbi committed Mar 17, 2015
1 parent 7310976 commit 3bcc877
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/supertux/sector.cpp
Expand Up @@ -1506,6 +1506,7 @@ Sector::resume_music()
}
else
{
SoundManager::current()->stop_music();
SoundManager::current()->play_music(music, true);
}
}
Expand Down

0 comments on commit 3bcc877

Please sign in to comment.