diff --git a/stepmania/src/RageUtil_BackgroundLoader.cpp b/stepmania/src/RageUtil_BackgroundLoader.cpp index 94bfdd4054..e03e3b2073 100644 --- a/stepmania/src/RageUtil_BackgroundLoader.cpp +++ b/stepmania/src/RageUtil_BackgroundLoader.cpp @@ -166,14 +166,12 @@ void BackgroundLoader::CacheFile( const CString &sFile ) if( !g_bEnableBackgroundLoading ) return; - LockMut( m_Mutex ); if( sFile == "" ) - ++m_FinishedRequests[sFile]; - else - { - m_CacheRequests.push_back( sFile ); - m_StartSem.Post(); - } + return; + + LockMut( m_Mutex ); + m_CacheRequests.push_back( sFile ); + m_StartSem.Post(); } bool BackgroundLoader::IsCacheFileFinished( const CString &sFile, CString &sActualPath )