mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-06 00:55:50 +00:00
fixed sound removal on cell change
This commit is contained in:
parent
13409b546f
commit
978c73add5
@ -257,7 +257,7 @@ namespace MWSound
|
|||||||
{
|
{
|
||||||
// Make sure to increase the iterator before we erase it.
|
// Make sure to increase the iterator before we erase it.
|
||||||
it2 = it++;
|
it2 = it++;
|
||||||
if(it->first.getCell() == cell)
|
if(it2->first.getCell() == cell)
|
||||||
clearAll(it2);
|
clearAll(it2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user