mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-31 17:45:35 +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);
|
||||
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)
|
||||
{
|
||||
if(sndbuf.second == sfx)
|
||||
|
|
Loading…
Reference in a new issue