debugging

This commit is contained in:
Glenn Maynard
2003-12-15 07:53:30 +00:00
parent 174c634616
commit 8371d211ba
+3 -3
View File
@@ -158,8 +158,8 @@ void SongManager::AddGroup( CString sDir, CString sGroupDirName )
sBannerPath = sDir+arrayGroupBanners[0];
}
if( sBannerPath != "" )
LOG->Trace( "Group banner for '%s' is '%s'.", sGroupDirName.c_str(), sBannerPath.c_str() );
LOG->Trace( "Group banner for '%s' is '%s'.", sGroupDirName.c_str(),
sBannerPath != ""? sBannerPath.c_str():"(none)" );
m_sGroupNames.push_back( sGroupDirName );
m_sGroupBannerPaths.push_back(sBannerPath);
}
@@ -333,7 +333,7 @@ RageColor SongManager::GetGroupColor( const CString &sGroupName )
if( m_sGroupNames[i] == sGroupName )
break;
}
ASSERT( i != m_sGroupNames.size() ); // this is not a valid group
RAGE_ASSERT_M( i != m_sGroupNames.size(), sGroupName ); // this is not a valid group
return g_vGroupColors[i%g_vGroupColors.size()];
}