fix crash

This commit is contained in:
Glenn Maynard
2003-12-12 05:38:10 +00:00
parent 0ef0f0633e
commit 756272f307
+1 -1
View File
@@ -504,7 +504,7 @@ void ProfileManager::ReadSongScoresFromDir( CString sDir, MemoryCard mc )
// ignore all high scores that are 0
for( l=0; l<iNumHighScores; l++ )
{
if( pNotes->m_MemCardDatas[mc].vHighScores[l].iScore <= 0 )
if( pNotes && pNotes->m_MemCardDatas[mc].vHighScores[l].iScore <= 0 )
{
pNotes->m_MemCardDatas[mc].vHighScores.resize(l);
break;