Merge pull request #810 from scrawl/soundplaying

getSoundPlaying fix
This commit is contained in:
scrawl 2015-11-19 01:48:01 +01:00
commit 67b0d99737

View file

@ -168,8 +168,8 @@ namespace MWSound
SoundMap::const_iterator snditer = mActiveSounds.begin(); SoundMap::const_iterator snditer = mActiveSounds.begin();
while(snditer != mActiveSounds.end()) while(snditer != mActiveSounds.end())
{ {
if(snditer->second.first == ptr && snditer->second.second == id) if(snditer->second.first == ptr && snditer->second.second == id && snditer->first->isPlaying())
return snditer->first->isPlaying(); return true;
++snditer; ++snditer;
} }
return false; return false;