diff --git a/stepmania/src/Song.cpp b/stepmania/src/Song.cpp index d0c4401bbe..7662b2b8e3 100644 --- a/stepmania/src/Song.cpp +++ b/stepmania/src/Song.cpp @@ -160,8 +160,6 @@ void Song::GetBeatAndBPSFromElapsedTime( float fElapsedTime, float &fBeatOut, fl for( int i=0; iGetCacheHash(m_sSongDir); - if( GetHashForDirectory(m_sSongDir) == iDirHash && // this cache is up to date + unsigned DirHash = SONGINDEX->GetCacheHash(m_sSongDir); + if( GetHashForDirectory(m_sSongDir) == uDirHash && // this cache is up to date DoesFileExist(GetCacheFilePath())) { LOG->Trace( "Loading '%s' from cache file '%s'.", m_sSongDir, GetCacheFilePath() );