From 13e58fb5417f67ca37d7e2685a0b09cab2cfd86e Mon Sep 17 00:00:00 2001 From: Charles Lohr Date: Tue, 25 Jan 2005 06:45:30 +0000 Subject: [PATCH] Fix: Pontless forced crash. We have steps which aren't null. --- stepmania/src/StepsUtil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/StepsUtil.cpp b/stepmania/src/StepsUtil.cpp index 179db8ab8a..fe4afa3f1e 100644 --- a/stepmania/src/StepsUtil.cpp +++ b/stepmania/src/StepsUtil.cpp @@ -169,7 +169,7 @@ Steps *StepsID::ToSteps( const Song *p, bool bAllowNull, bool bUseCache ) const ret = p->GetSteps( st, dc, -1, -1, "", 0, true ); } - if( !bAllowNull ) + if( ( !bAllowNull ) && ( ret == NULL ) ) FAIL_M( ssprintf("%i, %i, \"%s\"", st, dc, sDescription.c_str()) ); if( bUseCache )