Fix iterator fail

This commit is contained in:
Jack Andersen 2016-05-13 20:40:50 -10:00
parent 2341b6b7d0
commit b1e7f66199
1 changed files with 2 additions and 0 deletions

View File

@ -60,7 +60,9 @@ void Engine::_bringOutYourDead()
{ {
emitter->_destroy(); emitter->_destroy();
it = m_activeEmitters.erase(it); it = m_activeEmitters.erase(it);
continue;
} }
++it;
} }
for (auto it = m_activeVoices.begin() ; it != m_activeVoices.end() ;) for (auto it = m_activeVoices.begin() ; it != m_activeVoices.end() ;)