Lookup sound when need to fade out

pull/2957/head
elsid 5 years ago
parent 700f70595f
commit 1c9ce03575
No known key found for this signature in database
GPG Key ID: B845CB9FEE18AB40

@ -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