cleanup
This commit is contained in:
@@ -382,13 +382,11 @@ void UnlockManager::UnlockCode( int num )
|
|||||||
|
|
||||||
void UnlockManager::PreferUnlockCode( int iCode )
|
void UnlockManager::PreferUnlockCode( int iCode )
|
||||||
{
|
{
|
||||||
LOG->Trace( "look for %i", iCode );
|
|
||||||
for( unsigned i = 0; i < m_SongEntries.size(); ++i )
|
for( unsigned i = 0; i < m_SongEntries.size(); ++i )
|
||||||
{
|
{
|
||||||
UnlockEntry &pEntry = m_SongEntries[i];
|
UnlockEntry &pEntry = m_SongEntries[i];
|
||||||
if( pEntry.m_iCode != iCode )
|
if( pEntry.m_iCode != iCode )
|
||||||
continue;
|
continue;
|
||||||
LOG->Trace( "found %i, %p", iCode, pEntry.m_pSong );
|
|
||||||
|
|
||||||
if( pEntry.m_pSong != NULL )
|
if( pEntry.m_pSong != NULL )
|
||||||
GAMESTATE->m_pPreferredSong = pEntry.m_pSong;
|
GAMESTATE->m_pPreferredSong = pEntry.m_pSong;
|
||||||
|
|||||||
Reference in New Issue
Block a user