I don't like plain asserts. Add a message.

This commit is contained in:
Jason Felds
2011-09-29 22:00:57 -04:00
parent bd28efc790
commit 4f2e40874c
+4 -1
View File
@@ -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<m_vpSteps.size(); i++ )
{