Fix crash on extra stage but I'm a little concerned that this is just covering up the real bug.

This commit is contained in:
Steve Checkoway
2006-12-12 12:24:27 +00:00
parent ebbd138a76
commit 66e3eaa3e9
+3 -2
View File
@@ -288,10 +288,11 @@ void MusicWheelItem::LoadFromWheelItemData( const WheelItemBaseData *pWIBD, int
void MusicWheelItem::RefreshGrades()
{
if( data == NULL )
return; // LoadFromWheelItemData() hasn't been called yet.
FOREACH_HumanPlayer( p )
{
if( data->m_pSong == NULL || // this isn't a song display
!GAMESTATE->IsHumanPlayer(p) )
if( data->m_pSong == NULL )
{
m_pGradeDisplay[p]->SetDiffuse( RageColor(1,1,1,0) );
continue;