From e31a2c07334f454e8cb852027b436b9344365e18 Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Mon, 25 May 2015 15:22:23 +0200 Subject: [PATCH] AppGameDatabase: Fix off-by-one error when writing changes in the Game Database dialog. Did no one ever use this feature? If git blame is accurate this has been in the codebase since 2011... --- pcsx2/gui/AppGameDatabase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/gui/AppGameDatabase.cpp b/pcsx2/gui/AppGameDatabase.cpp index eec8cff501..e51b4e4bcb 100644 --- a/pcsx2/gui/AppGameDatabase.cpp +++ b/pcsx2/gui/AppGameDatabase.cpp @@ -209,7 +209,7 @@ void AppGameDatabase::SaveToFile(const wxString& file) { const uint endidx = (blockidx == m_BlockTableWritePos) ? m_CurBlockWritePos : m_GamesPerBlock; - for( uint gameidx=0; gameidx<=endidx; ++gameidx ) + for( uint gameidx=0; gameidx