From 5888536ac376d1d2c78610e424cb80db437df3b1 Mon Sep 17 00:00:00 2001 From: adelikat Date: Sun, 16 Sep 2012 16:22:34 +0000 Subject: [PATCH] TAStudio - fix an exception caused by an out of bounds check --- BizHawk.MultiClient/movie/MovieLog.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/BizHawk.MultiClient/movie/MovieLog.cs b/BizHawk.MultiClient/movie/MovieLog.cs index d3bda9c978..e85e49c2cd 100644 --- a/BizHawk.MultiClient/movie/MovieLog.cs +++ b/BizHawk.MultiClient/movie/MovieLog.cs @@ -209,7 +209,14 @@ namespace BizHawk.MultiClient { if (frame >= StateFirstIndex && frame <= StateLastIndex && frame <= StateRecords.Count) { - return StateRecords[frame].Lagged; + if (frame < StateRecords.Count) + { + return StateRecords[frame].Lagged; + } + else + { + return false; + } } else {