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:
parent
b5927b1212
commit
ea2bdac456
Binary file not shown.
|
@ -80,6 +80,8 @@ namespace BizHawk.MultiClient
|
|||
|
||||
public string GetRecentFileByPosition(int position)
|
||||
{
|
||||
if (recentlist.Count == 0)
|
||||
return "";
|
||||
return recentlist[position];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue