0bdfc6a953
- fix crash when exiting game engine (with ESC-key). - reason for crash: std::vector iterator is invalid after vector::erase