Merge pull request #2957 from elsid/sound_lookup_when_fade_out

Lookup sound when need to fade out
pull/2959/head
Andrei Kortunov 5 years ago committed by GitHub
commit e335dc8b8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save