mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
Lookup sound when need to fade out
This commit is contained in:
parent
700f70595f
commit
1c9ce03575
@ -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…
x
Reference in New Issue
Block a user