From bc17353ef5461e8acfa536ddc926bc74bd85229c Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 2 Apr 2004 03:19:02 +0000 Subject: [PATCH] fix summary crash --- stepmania/src/ScreenEvaluation.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stepmania/src/ScreenEvaluation.cpp b/stepmania/src/ScreenEvaluation.cpp index 99db93a95f..d75eefa413 100644 --- a/stepmania/src/ScreenEvaluation.cpp +++ b/stepmania/src/ScreenEvaluation.cpp @@ -1118,11 +1118,14 @@ void ScreenEvaluation::CommitScores( // erase awards from the Last list that have been received so that we // won't show them again. + switch( m_Type ) { + case stage: for( int i=GAMESTATE->m_vLastPerDifficultyAwards[p].size()-1; i>=0; i-- ) { PerDifficultyAward pda = GAMESTATE->m_vLastPerDifficultyAwards[p][i]; Steps* pSteps = stageStats.pSteps[p]; + ASSERT( pSteps != NULL ); bool bAlreadyHad = pProfile->HasPerDifficultyAward( pSteps->m_StepsType, pSteps->GetDifficulty(), pda ); pProfile->AddPerDifficultyAward( pSteps->m_StepsType, pSteps->GetDifficulty(), pda ); if( bAlreadyHad )