From a956d47716cfdc5470847fd2a98ffbc45904cfaf Mon Sep 17 00:00:00 2001 From: "andres.delikat" Date: Tue, 18 Jan 2011 04:03:46 +0000 Subject: [PATCH] Another recentfiles bug - fix so that the last recent on the list is removed when the max count has been exceeded --- BizHawk.MultiClient/RecentFiles.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BizHawk.MultiClient/RecentFiles.cs b/BizHawk.MultiClient/RecentFiles.cs index 64ee89392f..d06a3fda86 100644 --- a/BizHawk.MultiClient/RecentFiles.cs +++ b/BizHawk.MultiClient/RecentFiles.cs @@ -44,7 +44,7 @@ namespace BizHawk.MultiClient } recentlist.Insert(0, newFile); if (recentlist.Count > MAX_RECENT_FILES) - recentlist.Remove(recentlist[0]); + recentlist.Remove(recentlist[recentlist.Count-1]); } public bool Remove(string newFile)