TAStudio - fix exception when loading states in record mode. Caused by a out of bounds exception on the StateRecords array. This is just a band-aid, tastudio should not be asking for out of bounds information, that needs to be fixed.

This commit is contained in:
adelikat 2012-09-13 00:17:39 +00:00
parent 76c68bf6d5
commit 68d79dd991
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ namespace BizHawk.MultiClient
public bool FrameLagged(int frame)
{
if (frame >= StateFirstIndex && frame <= StateLastIndex)
if (frame >= StateFirstIndex && frame <= StateLastIndex && frame <= StateRecords.Count)
{
return StateRecords[frame].Lagged;
}