Skip to content

Commit 7213734

Browse files
committed
fix #4771
1 parent 1df40bc commit 7213734

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.Navigation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public void GoToFrame(int frame, bool OnLeftMouseDown = false, bool skipLoadStat
2424
_pauseAfterSeeking = MainForm.EmulatorPaused || (SeekingTo != -1 && _pauseAfterSeeking);
2525
WasRecording = CurrentTasMovie.IsRecording() || WasRecording;
2626
TastudioPlayMode();
27+
SeekingTo = frame; // must be before LoadState, since it calls UpdateAfter (potentially doing end-of-seek logic if prior seek was to before this frame) instead of SavestateLoaded for ??? reason.
2728

2829
var closestState = GetPriorStateForFramebuffer(frame);
2930
if (frame < Emulator.Frame || (closestState.Key > Emulator.Frame && !skipLoadState))
@@ -37,7 +38,6 @@ public void GoToFrame(int frame, bool OnLeftMouseDown = false, bool skipLoadStat
3738
_seekStartFrame = Emulator.Frame;
3839
_seekingByEdit = false;
3940

40-
SeekingTo = frame;
4141
MainForm.UnpauseEmulator();
4242

4343
if (SeekingTo - _seekStartFrame > 1)

0 commit comments

Comments
 (0)