mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 14:50:17 +00:00
ZVISION: Fix killSideFxType iterator.
This commit is contained in:
parent
aef9c68f3c
commit
4ced9c07e0
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user