fix deref null Steps

This commit is contained in:
Chris Danford
2005-05-26 08:07:42 +00:00
parent b8de0155be
commit 87183c0551
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -148,6 +148,7 @@ const UnlockEntry *UnlockManager::FindSong( const Song *pSong ) const
const UnlockEntry *UnlockManager::FindSteps( const Song *pSong, const Steps *pSteps ) const
{
ASSERT( pSong && pSteps );
FOREACH_CONST( UnlockEntry, m_UnlockEntries, e )
if( e->m_pSong == pSong && e->m_dc == pSteps->GetDifficulty() )
return &(*e);