Don't invalidate vector iterator
Merge remote-tracking branch 'remotes/origin/master' into SDL2_support