fix off-by-one-too-short-inputlog bug in MoviesOnDisk mode

This commit is contained in:
zeromus 2016-01-10 22:45:43 -06:00
parent f0ab9edc10
commit e1ddb51826
1 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@ namespace BizHawk.Client.Common
class Enumerator : IEnumerator<string>
{
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() { }
}