Don't remove player's sounds when unloading a cell

This commit is contained in:
scrawl 2014-10-12 18:35:15 +02:00
parent d51daf5875
commit 9edcc332ec

View file

@ -454,6 +454,7 @@ namespace MWSound
while(snditer != mActiveSounds.end()) while(snditer != mActiveSounds.end())
{ {
if(snditer->second.first != MWWorld::Ptr() && if(snditer->second.first != MWWorld::Ptr() &&
snditer->second.first.getCellRef().getRefId() != "player" &&
snditer->second.first.getCell() == cell) snditer->second.first.getCell() == cell)
{ {
snditer->first->stop(); snditer->first->stop();