add assert
This commit is contained in:
@@ -114,7 +114,10 @@ MusicWheel::MusicWheel()
|
|||||||
{
|
{
|
||||||
// make the preferred group the group of the last song played.
|
// make the preferred group the group of the last song played.
|
||||||
if( GAMESTATE->m_sPreferredGroup==GROUP_ALL_MUSIC && !PREFSMAN->m_bPickExtraStage )
|
if( GAMESTATE->m_sPreferredGroup==GROUP_ALL_MUSIC && !PREFSMAN->m_bPickExtraStage )
|
||||||
|
{
|
||||||
|
ASSERT(GAMESTATE->m_pCurSong);
|
||||||
GAMESTATE->m_sPreferredGroup = GAMESTATE->m_pCurSong->m_sGroupName;
|
GAMESTATE->m_sPreferredGroup = GAMESTATE->m_pCurSong->m_sGroupName;
|
||||||
|
}
|
||||||
|
|
||||||
Song* pSong;
|
Song* pSong;
|
||||||
Notes* pNotes;
|
Notes* pNotes;
|
||||||
|
|||||||
Reference in New Issue
Block a user