fix inverted Selectable logic

This commit is contained in:
Chris Danford
2007-10-19 09:00:18 +00:00
parent dd4c27bc0f
commit aa4afd5474
+2 -2
View File
@@ -37,11 +37,11 @@ bool SongCriteria::Matches( const Song *pSong ) const
{ {
DEFAULT_FAIL(m_Selectable); DEFAULT_FAIL(m_Selectable);
case Selectable_Yes: case Selectable_Yes:
if( UNLOCKMAN && !(UNLOCKMAN->SongIsLocked(pSong) & LOCKED_SELECTABLE) ) if( UNLOCKMAN && UNLOCKMAN->SongIsLocked(pSong) & LOCKED_SELECTABLE )
return false; return false;
break; break;
case Selectable_No: case Selectable_No:
if( UNLOCKMAN && UNLOCKMAN->SongIsLocked(pSong) & LOCKED_SELECTABLE ) if( UNLOCKMAN && !(UNLOCKMAN->SongIsLocked(pSong) & LOCKED_SELECTABLE) )
return false; return false;
break; break;
case Selectable_DontCare: case Selectable_DontCare: