From 14500a50be4a55fffd4fdf75c7c7311db44b7c79 Mon Sep 17 00:00:00 2001 From: zeromus Date: Mon, 26 May 2008 23:29:00 +0000 Subject: [PATCH] weird case with loading read+write savestate at end of movie fixed? --- src/movie.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/movie.cpp b/src/movie.cpp index 270b7393..37954079 100644 --- a/src/movie.cpp +++ b/src/movie.cpp @@ -727,7 +727,7 @@ bool FCEUMOV_ReadState(FILE* st, uint32 size) if(movie_readonly) { //if the frame counter is longer than our current movie, then error - if(currFrameCounter >= (int)currMovieData.records.size()) + if(currFrameCounter > (int)currMovieData.records.size()) { FCEU_PrintError("Savestate is from a frame (%d) after the final frame in the movie (%d). This is not permitted.", currFrameCounter, currMovieData.records.size()-1); return false;