git-svn-id: https://openitg.svn.sourceforge.net/svnroot/openitg@318 83fadc84-e282...
authorPatrick McIlroy <itgpmc@gmail.com>
Wed, 14 May 2008 07:12:53 +0000 (07:12 +0000)
committerPatrick McIlroy <itgpmc@gmail.com>
Wed, 14 May 2008 07:12:53 +0000 (07:12 +0000)
src/SongManager.cpp

index bc96e55..95807bf 100755 (executable)
@@ -307,7 +307,7 @@ void SongManager::LoadPlayerSongs( PlayerNumber pn )
                }
 
                // we want to stop right on the number, not after. "Greater than" is added as a safeguard.
-               if( iSongsLoaded >= PREFSMAN->m_iCustomsLoadMax )
+               if( PREFSMAN->m_iCustomsLoadMax > 0 && iSongsLoaded >= PREFSMAN->m_iCustomsLoadMax )
                {
                        LOG->Warn( "Loading interrupted. Limit of %i songs was reached, after %f seconds.",
                        (int)PREFSMAN->m_iCustomsLoadMax, LoadTimer.Ago() );