From 9a091f5aecb3c086b75901090c6cf374816eb7f6 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 18 Oct 2003 20:57:28 +0000 Subject: [PATCH] add asserts --- stepmania/src/GameState.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stepmania/src/GameState.cpp b/stepmania/src/GameState.cpp index 5028cc908e..899f1c058c 100644 --- a/stepmania/src/GameState.cpp +++ b/stepmania/src/GameState.cpp @@ -770,7 +770,9 @@ void GameState::GetRankingFeats( PlayerNumber pn, vector &asFeatsO for( i=0; i<(int)m_vPlayedStageStats.size(); i++ ) { Song* pSong = m_vPlayedStageStats[i].pSong; + ASSERT( pSong ); Steps* pSteps = m_vPlayedStageStats[i].pSteps[pn]; + ASSERT( pSteps ); vector &vHighScores = pSteps->m_MemCardDatas[MEMORY_CARD_MACHINE].vHighScores; for( unsigned j=0; j