From 4f2e40874c62c49d48c40dc5f7cfd68b21c660a6 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Thu, 29 Sep 2011 22:00:57 -0400 Subject: [PATCH] I don't like plain asserts. Add a message. --- src/Song.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Song.cpp b/src/Song.cpp index 9ab0a661ac..fa3f0b475e 100644 --- a/src/Song.cpp +++ b/src/Song.cpp @@ -1542,7 +1542,10 @@ int Song::GetNumStepsLoadedFromProfile( ProfileSlot slot ) const bool Song::IsEditAlreadyLoaded( Steps* pSteps ) const { - ASSERT( pSteps->GetDifficulty() == Difficulty_Edit ); + ASSERT_M( pSteps->GetDifficulty() == Difficulty_Edit, + ssprintf("The %s chart for %s is no edit, thus it can't be checked for loading.", + DifficultyToString(pSteps->GetDifficulty()).c_str(), + this->m_sMainTitle.c_str())); for( unsigned i=0; i