diff --git a/apps/openmw/mwsound/soundmanager.cpp b/apps/openmw/mwsound/soundmanager.cpp index bd81ef6e6..2e160f5c2 100644 --- a/apps/openmw/mwsound/soundmanager.cpp +++ b/apps/openmw/mwsound/soundmanager.cpp @@ -257,7 +257,7 @@ namespace MWSound { // Make sure to increase the iterator before we erase it. it2 = it++; - if(it->first.getCell() == cell) + if(it2->first.getCell() == cell) clearAll(it2); } }