Fixed really annoying access violations

- VS does not warn you if you accidentally put ";" right after the for loop header (before the block). Really hard to catch!