aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornOOb3167 <nOOb3167@gmail.com>2018-03-24 16:05:26 +0100
committerSmallJoker <mk939@ymail.com>2018-03-24 16:05:26 +0100
commit43f98eb47cabd3b8a2f5d2f9e7ae3bb6cf52fd6c (patch)
treef9cfc05d7967da5133f67c430afaca7bd8a35eec
parent4fd97158762b4cdd4c73a6e29960e371d9de56e7 (diff)
downloadminetest-43f98eb47cabd3b8a2f5d2f9e7ae3bb6cf52fd6c.tar.gz
minetest-43f98eb47cabd3b8a2f5d2f9e7ae3bb6cf52fd6c.tar.bz2
minetest-43f98eb47cabd3b8a2f5d2f9e7ae3bb6cf52fd6c.zip
Make sounds stop playing when entering game or mainmenu
-rw-r--r--src/client/sound_openal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/sound_openal.cpp b/src/client/sound_openal.cpp
index d66360057..8e696f302 100644
--- a/src/client/sound_openal.cpp
+++ b/src/client/sound_openal.cpp
@@ -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);