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
05feca4e4e
commit
2911e498e1
|
@ -335,6 +335,8 @@ namespace BizHawk.Client.Common
|
||||||
var minuend = Math.Min(lastFrame + 1, movie.InputLogLength);
|
var minuend = Math.Min(lastFrame + 1, movie.InputLogLength);
|
||||||
if (firstFrame > minuend)
|
if (firstFrame > minuend)
|
||||||
undoLength = minuend;
|
undoLength = minuend;
|
||||||
|
else if (firstFrame == minuend)
|
||||||
|
undoLength = Math.Max(lastFrame + 1, movie.InputLogLength) - firstFrame;
|
||||||
else
|
else
|
||||||
undoLength = minuend - firstFrame;
|
undoLength = minuend - firstFrame;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue