ZVISION: Fix killSideFxType iterator.

This commit is contained in:
Marisa-Chan 2014-01-13 07:53:36 +07:00
parent aef9c68f3c
commit 4ced9c07e0

View File

@ -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;
}