fix crash

This commit is contained in:
Glenn Maynard
2004-03-25 04:09:58 +00:00
parent e9368790a3
commit 18ef4de22a
+1 -1
View File
@@ -562,7 +562,7 @@ bool PlayerOptions::IsHandicapForCourse( Course* pCourse )
for( unsigned i=0; i<pCourse->m_entries.size(); i++ )
{
const CourseEntry& ce = pCourse->m_entries[i];
if( IsHandicapForSong(ce.pSong) )
if( ce.pSong && IsHandicapForSong(ce.pSong) )
return true;
}
return false;