Make sounds stop playing when entering game or mainmenu
parent
4fd9715876
commit
43f98eb47c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue