From: nOOb3167 Date: Sat, 24 Mar 2018 15:05:26 +0000 (+0100) Subject: Make sounds stop playing when entering game or mainmenu X-Git-Tag: 5.0.0~494 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=43f98eb47cabd3b8a2f5d2f9e7ae3bb6cf52fd6c;p=oweals%2Fminetest.git Make sounds stop playing when entering game or mainmenu --- 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 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);