Fix an exception from commit 2161 (Prevent lua script restart when resetting a game). Fixed by making RecentFiles.GetRecentFileByPosition() more robust by not crashing when there is no recent file (returns "") instead

This commit is contained in:
adelikat 2012-04-04 02:23:47 +00:00
parent b5927b1212
commit ea2bdac456
2 changed files with 2 additions and 0 deletions

View File

@ -80,6 +80,8 @@ namespace BizHawk.MultiClient
public string GetRecentFileByPosition(int position)
{
if (recentlist.Count == 0)
return "";
return recentlist[position];
}
}