From e1ddb51826d8971a12c996970c1624721490dae8 Mon Sep 17 00:00:00 2001 From: zeromus Date: Sun, 10 Jan 2016 22:45:43 -0600 Subject: [PATCH] fix off-by-one-too-short-inputlog bug in MoviesOnDisk mode --- BizHawk.Client.Common/movie/bk2/StringLogs.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BizHawk.Client.Common/movie/bk2/StringLogs.cs b/BizHawk.Client.Common/movie/bk2/StringLogs.cs index 16391df2b5..e284fadf8c 100644 --- a/BizHawk.Client.Common/movie/bk2/StringLogs.cs +++ b/BizHawk.Client.Common/movie/bk2/StringLogs.cs @@ -143,7 +143,7 @@ namespace BizHawk.Client.Common class Enumerator : IEnumerator { public DiskStringLog log; - int index; + int index = -1; public string Current { get { return log[index]; } } object System.Collections.IEnumerator.Current { get { return log[index]; } } bool System.Collections.IEnumerator.MoveNext() @@ -156,7 +156,7 @@ namespace BizHawk.Client.Common } return true; } - void System.Collections.IEnumerator.Reset() { index = 0; } + void System.Collections.IEnumerator.Reset() { index = -1; } public void Dispose() { } }