Fix: Pontless forced crash. We have steps which aren't null.
This commit is contained in:
@@ -169,7 +169,7 @@ Steps *StepsID::ToSteps( const Song *p, bool bAllowNull, bool bUseCache ) const
|
|||||||
ret = p->GetSteps( st, dc, -1, -1, "", 0, true );
|
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()) );
|
FAIL_M( ssprintf("%i, %i, \"%s\"", st, dc, sDescription.c_str()) );
|
||||||
|
|
||||||
if( bUseCache )
|
if( bUseCache )
|
||||||
|
|||||||
Reference in New Issue
Block a user