1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-07 12:54:00 +00:00

Stop all sounds of the given id

This commit is contained in:
Chris Robinson 2015-11-24 08:08:38 -08:00
parent 8a69f676ec
commit 4801661b34

View File

@ -603,10 +603,8 @@ namespace MWSound
SoundIndexPairList::iterator sndidx = snditer->second.begin();
for(;sndidx != snditer->second.end();++sndidx)
{
if(sndidx->second != sfxid)
continue;
sndidx->first->stop();
return;
if(sndidx->second == sfxid)
sndidx->first->stop();
}
}
}