From 8371d211ba22a1a1682c8ec359c865172285a2a8 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 15 Dec 2003 07:53:30 +0000 Subject: [PATCH] debugging --- stepmania/src/SongManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stepmania/src/SongManager.cpp b/stepmania/src/SongManager.cpp index a5e5e91cd8..15a2be70c8 100644 --- a/stepmania/src/SongManager.cpp +++ b/stepmania/src/SongManager.cpp @@ -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()]; }