Merge pull request #553 from AdmiralCurtiss/game-database-writer-fix

Fix off-by-one error in the Game Database Editor (unused legacy code).
This commit is contained in:
avih committed 2015-05-25 18:40:26 +03:00
commit ff7aeb7808
1 file changed
+1 -1
+1 -1
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] );