From 394a6d86b52dee7f53ff8537709ed4da60a0ca09 Mon Sep 17 00:00:00 2001 From: adelikat Date: Sat, 15 Jun 2019 16:38:33 -0500 Subject: [PATCH] According to the TSM api, the indexer will never return null, check length instead --- BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.cs b/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.cs index 6a48406b51..c7a25d82c0 100644 --- a/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.cs +++ b/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.cs @@ -900,7 +900,7 @@ namespace BizHawk.Client.EmuHawk _unpauseAfterSeeking = (fromRewinding || WasRecording) && !Mainform.EmulatorPaused; TastudioPlayMode(); KeyValuePair closestState = CurrentTasMovie.TasStateManager.GetStateClosestToFrame(frame); - if (closestState.Value != null && (frame < Emulator.Frame || closestState.Key > Emulator.Frame)) + if (closestState.Value.Length > 0 && (frame < Emulator.Frame || closestState.Key > Emulator.Frame)) { LoadState(closestState); }