diff --git a/src/fceu.cpp b/src/fceu.cpp index f81af645..2c71e5d4 100644 --- a/src/fceu.cpp +++ b/src/fceu.cpp @@ -471,7 +471,7 @@ void SetAutoFireOffset(int offset) void AutoFire(void) { static int counter = 0; - counter = (++counter) % (8*7*5*3); + counter = (counter + 1) % (8*7*5*3); //If recording a movie, use the frame # for the autofire so the offset //doesn't get screwed up when loading. if(FCEUMOV_Mode(MOVIEMODE_RECORD | MOVIEMODE_PLAY))