From 18ef4de22a864c064a69d1281323890cde666566 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 25 Mar 2004 04:09:58 +0000 Subject: [PATCH] fix crash --- stepmania/src/PlayerOptions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/PlayerOptions.cpp b/stepmania/src/PlayerOptions.cpp index 27e968b322..be9e585d7a 100644 --- a/stepmania/src/PlayerOptions.cpp +++ b/stepmania/src/PlayerOptions.cpp @@ -562,7 +562,7 @@ bool PlayerOptions::IsHandicapForCourse( Course* pCourse ) for( unsigned i=0; im_entries.size(); i++ ) { const CourseEntry& ce = pCourse->m_entries[i]; - if( IsHandicapForSong(ce.pSong) ) + if( ce.pSong && IsHandicapForSong(ce.pSong) ) return true; } return false;