Bring better(?) assertion to default.

This commit is contained in:
Jason Felds
2011-06-17 00:32:30 -04:00
parent e26bccdf27
commit bd336c9a76
+3 -1
View File
@@ -190,7 +190,9 @@ RString Song::GetCacheFilePath() const
// Get a path to the SM containing data for this song. It might be a cache file.
const RString &Song::GetSongFilePath() const
{
ASSERT( !m_sSongFileName.empty() );
ASSERT_M( !m_sSongFileName.empty(),
ssprintf("The song %s has no filename associated with it!",
this->m_sMainTitle.c_str()));
return m_sSongFileName;
}