fix crash on fail

This commit is contained in:
Chris Danford
2004-05-24 03:16:14 +00:00
parent d2bb74c409
commit 1d532df9ef
+1 -1
View File
@@ -324,7 +324,7 @@ ScreenNameEntryTraditional::ScreenNameEntryTraditional( CString sClassName ) : S
Course* pCourse = GAMESTATE->m_pCurCourse;
StepsType st = GAMESTATE->GetCurrentStyleDef()->m_StepsType;
CourseDifficulty cd = GAMESTATE->m_PreferredCourseDifficulty[p];
Trail* pTrail = pCourse->GetTrail( st, cd );
Trail* pTrail = pCourse ? pCourse->GetTrail( st, cd ) : NULL;
int iHighScoreIndex = -1; // -1 means "out of ranking"
Grade grade = ss.GetGrade( p );