From 4ced9c07e0ce55fd77c7a31261a3179b5abb7a8c Mon Sep 17 00:00:00 2001 From: Marisa-Chan Date: Mon, 13 Jan 2014 07:53:36 +0700 Subject: ZVISION: Fix killSideFxType iterator. --- engines/zvision/script_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3