forked from mirror/openmw-tes3mp
Stop all sounds of the given id
This commit is contained in:
parent
8a69f676ec
commit
4801661b34
1 changed files with 2 additions and 4 deletions
|
@ -603,10 +603,8 @@ namespace MWSound
|
||||||
SoundIndexPairList::iterator sndidx = snditer->second.begin();
|
SoundIndexPairList::iterator sndidx = snditer->second.begin();
|
||||||
for(;sndidx != snditer->second.end();++sndidx)
|
for(;sndidx != snditer->second.end();++sndidx)
|
||||||
{
|
{
|
||||||
if(sndidx->second != sfxid)
|
if(sndidx->second == sfxid)
|
||||||
continue;
|
sndidx->first->stop();
|
||||||
sndidx->first->stop();
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue