This commit is contained in:
Glenn Maynard
2005-02-24 22:45:59 +00:00
parent 1b16ab4ee6
commit 5376cf473b
-2
View File
@@ -382,13 +382,11 @@ void UnlockManager::UnlockCode( int num )
void UnlockManager::PreferUnlockCode( int iCode )
{
LOG->Trace( "look for %i", iCode );
for( unsigned i = 0; i < m_SongEntries.size(); ++i )
{
UnlockEntry &pEntry = m_SongEntries[i];
if( pEntry.m_iCode != iCode )
continue;
LOG->Trace( "found %i, %p", iCode, pEntry.m_pSong );
if( pEntry.m_pSong != NULL )
GAMESTATE->m_pPreferredSong = pEntry.m_pSong;