Make sounds stop playing when entering game or mainmenu

This commit is contained in:
nOOb3167 2018-03-24 16:05:26 +01:00 committed by SmallJoker
parent 4fd9715876
commit 43f98eb47c
1 changed files with 1 additions and 1 deletions

View File

@ -343,7 +343,7 @@ public:
std::unordered_set<int> source_del_list;
for (const auto &sp : m_sounds_playing)
source_del_list.insert(sp.second->source_id);
source_del_list.insert(sp.first);
for (const auto &id : source_del_list)
deleteSound(id);