mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-27 05:10:26 +00:00
Lookup sound when need to fade out
This commit is contained in:
parent
700f70595f
commit
1c9ce03575
1 changed files with 3 additions and 1 deletions
|
@ -762,7 +762,9 @@ namespace MWSound
|
||||||
SoundMap::iterator snditer = mActiveSounds.find(ptr);
|
SoundMap::iterator snditer = mActiveSounds.find(ptr);
|
||||||
if(snditer != mActiveSounds.end())
|
if(snditer != mActiveSounds.end())
|
||||||
{
|
{
|
||||||
Sound_Buffer *sfx = loadSound(Misc::StringUtils::lowerCase(soundId));
|
Sound_Buffer *sfx = lookupSound(Misc::StringUtils::lowerCase(soundId));
|
||||||
|
if (sfx == nullptr)
|
||||||
|
return;
|
||||||
for(SoundBufferRefPair &sndbuf : snditer->second)
|
for(SoundBufferRefPair &sndbuf : snditer->second)
|
||||||
{
|
{
|
||||||
if(sndbuf.second == sfx)
|
if(sndbuf.second == sfx)
|
||||||
|
|
Loading…
Reference in a new issue