Skip to content

Commit

Permalink
Merge pull request #553 from AdmiralCurtiss/game-database-writer-fix
Browse files Browse the repository at this point in the history
Fix off-by-one error in the Game Database Editor (unused legacy code).
  • Loading branch information
avih committed May 25, 2015
2 parents 2704a65 + e31a2c0 commit ff7aeb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcsx2/gui/AppGameDatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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] );

Expand Down

0 comments on commit ff7aeb7

Please sign in to comment.