Fixed issue #626.

This commit is contained in:
Suuper 2016-05-14 13:46:15 -05:00
parent 4766380ecd
commit 327c45b440
1 changed files with 6 additions and 8 deletions

View File

@ -354,14 +354,13 @@ namespace BizHawk.Client.Common
movie.BindMarkersToInput = bindMarkers;
if (redoLength != length)
movie.InsertEmptyFrame(movie.InputLogLength, length - redoLength);
movie.InsertEmptyFrame(FirstFrame, length - redoLength);
if (undoLength != length)
movie.RemoveFrames(FirstFrame, movie.InputLogLength - undoLength);
for (int i = 0; i < undoLength; i++)
movie.SetFrame(FirstFrame + i, oldLog[i]);
if (undoLength != length)
movie.RemoveFrames(FirstFrame + undoLength, movie.InputLogLength);
movie.ChangeLog.IsRecording = wasRecording;
movie.BindMarkersToInput = bindMarkers;
}
@ -373,14 +372,13 @@ namespace BizHawk.Client.Common
movie.BindMarkersToInput = bindMarkers;
if (undoLength != length)
movie.InsertEmptyFrame(movie.InputLogLength, length - undoLength);
movie.InsertEmptyFrame(FirstFrame, length - undoLength);
if (redoLength != length)
movie.RemoveFrames(FirstFrame, movie.InputLogLength - redoLength);
for (int i = 0; i < redoLength; i++)
movie.SetFrame(FirstFrame + i, newLog[i]);
if (redoLength != length)
movie.RemoveFrames(FirstFrame + redoLength, movie.InputLogLength);
movie.ChangeLog.IsRecording = wasRecording;
movie.BindMarkersToInput = bindMarkers;
}