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...
This commit is contained in:
Admiral H. Curtiss 2015-05-25 15:22:23 +02:00
parent 2704a65f57
commit e31a2c0733
1 changed files with 1 additions and 1 deletions

View File

@ -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<endidx; ++gameidx )
{
const Game_Data& game( m_BlockTable[blockidx][gameidx] );