weird case with loading read+write savestate at end of movie fixed?
This commit is contained in:
parent
9fbcd1ed78
commit
14500a50be
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue