projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fd9715
)
Make sounds stop playing when entering game or mainmenu
author
nOOb3167
<nOOb3167@gmail.com>
Sat, 24 Mar 2018 15:05:26 +0000
(16:05 +0100)
committer
SmallJoker
<mk939@ymail.com>
Sat, 24 Mar 2018 15:05:26 +0000
(16:05 +0100)
src/client/sound_openal.cpp
patch
|
blob
|
history
diff --git
a/src/client/sound_openal.cpp
b/src/client/sound_openal.cpp
index d6636005724e73a670214a7fd2c9eec5ad82233e..8e696f30278bb09ef6e31ca8200e8605a71bd9aa 100644
(file)
--- 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);