diff --git a/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.cs b/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.cs index 7353faf709..8b051453e6 100644 --- a/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.cs +++ b/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.cs @@ -909,7 +909,9 @@ namespace BizHawk.Client.EmuHawk public void LoadState(KeyValuePair state) { - StatableEmulator.LoadStateBinary(new BinaryReader(new MemoryStream(state.Value.ToArray()))); + using var ms = new MemoryStream(state.Value); + using var br = new BinaryReader(ms); + StatableEmulator.LoadStateBinary(br); if (state.Key == 0 && CurrentTasMovie.StartsFromSavestate) {