aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision
diff options
context:
space:
mode:
authorMarisa-Chan2014-01-13 07:53:36 +0700
committerMarisa-Chan2014-01-13 07:53:36 +0700
commit4ced9c07e0ce55fd77c7a31261a3179b5abb7a8c (patch)
treed334fec9b192cfd65977f8813e13d02b509afe41 /engines/zvision
parentaef9c68f3c99908ae6027c059652b46ee758ca7b (diff)
downloadscummvm-rg350-4ced9c07e0ce55fd77c7a31261a3179b5abb7a8c.tar.gz
scummvm-rg350-4ced9c07e0ce55fd77c7a31261a3179b5abb7a8c.tar.bz2
scummvm-rg350-4ced9c07e0ce55fd77c7a31261a3179b5abb7a8c.zip
ZVISION: Fix killSideFxType iterator.
Diffstat (limited to 'engines/zvision')
-rw-r--r--engines/zvision/script_manager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/zvision/script_manager.cpp b/engines/zvision/script_manager.cpp
index ddb57c80da..a1003197ef 100644
--- a/engines/zvision/script_manager.cpp
+++ b/engines/zvision/script_manager.cpp
@@ -381,7 +381,7 @@ void ScriptManager::killSideFxType(SideFX::SideFXType type) {
if ((*iter)->getType() & type) {
(*iter)->kill();
delete(*iter);
- _activeSideFx.erase(iter);
+ iter = _activeSideFx.erase(iter);
} else {
++iter;
}