tastudio history: fix bug where undoing the movie extension (caused by drawing beyond the movie length) would swallow all the movie
This commit is contained in:
parent
5761b6b7ce
commit
9e8c152dde
|
@ -335,6 +335,8 @@ namespace BizHawk.Client.Common
|
|||
var minuend = Math.Min(lastFrame + 1, movie.InputLogLength);
|
||||
if (firstFrame > minuend)
|
||||
undoLength = minuend;
|
||||
else if (firstFrame == minuend)
|
||||
undoLength = Math.Max(lastFrame + 1, movie.InputLogLength) - firstFrame;
|
||||
else
|
||||
undoLength = minuend - firstFrame;
|
||||
|
||||
|
|
Loading…
Reference in New Issue