From 978c73add5a72c02f8e8cd424a3f78c3174a4c5b Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Fri, 20 Aug 2010 15:24:05 +0200 Subject: [PATCH] fixed sound removal on cell change --- apps/openmw/mwsound/soundmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }