diff --git a/stepmania/src/CourseLoaderCRS.cpp b/stepmania/src/CourseLoaderCRS.cpp index 5eb32e975d..5b56a45213 100644 --- a/stepmania/src/CourseLoaderCRS.cpp +++ b/stepmania/src/CourseLoaderCRS.cpp @@ -388,9 +388,8 @@ bool CourseLoaderCRS::LoadFromCRSFile( const RString &_sPath, Course &out ) if( out.m_RadarCache.size() ) { RString sCachePath = out.GetCacheFilePath(); - CourseWriterCRS::Write( out, sCachePath, true ); - - SONGINDEX->AddCacheIndex( out.m_sPath, GetHashForFile(out.m_sPath) ); + if( CourseWriterCRS::Write(out, sCachePath, true) ) + SONGINDEX->AddCacheIndex( out.m_sPath, GetHashForFile(out.m_sPath) ); } }