From 626528ade66dfafca17950a7981db00b399fdfc1 Mon Sep 17 00:00:00 2001 From: adelikat Date: Fri, 28 May 2010 19:59:06 +0000 Subject: [PATCH] Fix wrong comparison during loadstate+read-only checking. Post-movie savestates can now be loaded in read-only without an erroneous error. --- src/movie.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/movie.cpp b/src/movie.cpp index 26fd2554..17bfe47a 100644 --- a/src/movie.cpp +++ b/src/movie.cpp @@ -1344,7 +1344,7 @@ bool FCEUMOV_ReadState(EMUFILE* is, uint32 size) //if we made it this far, then the savestate has identical movie data but we want to know now if the stateMOVIE size is greater than current movie size and make this error //currFrameCounter at this point represents the savestate framecount - if(currFrameCounter > (int)currMovieData.records.size()) + if(tempMovieData.records.size() > currMovieData.records.size()) { //TODO: turn frame counter to red to get attention