From a9935263eff45985dbb9a89b02dc70fe250cd4c9 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 23 Apr 2003 07:29:03 +0000 Subject: [PATCH] add assert --- stepmania/src/MusicWheel.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stepmania/src/MusicWheel.cpp b/stepmania/src/MusicWheel.cpp index 589117a446..7b430e8b28 100644 --- a/stepmania/src/MusicWheel.cpp +++ b/stepmania/src/MusicWheel.cpp @@ -114,7 +114,10 @@ MusicWheel::MusicWheel() { // make the preferred group the group of the last song played. if( GAMESTATE->m_sPreferredGroup==GROUP_ALL_MUSIC && !PREFSMAN->m_bPickExtraStage ) + { + ASSERT(GAMESTATE->m_pCurSong); GAMESTATE->m_sPreferredGroup = GAMESTATE->m_pCurSong->m_sGroupName; + } Song* pSong; Notes* pNotes;