diff --git a/stepmania/src/SongCacheIndex.cpp b/stepmania/src/SongCacheIndex.cpp index a87259556f..5d8d2ce94d 100644 --- a/stepmania/src/SongCacheIndex.cpp +++ b/stepmania/src/SongCacheIndex.cpp @@ -37,6 +37,8 @@ RString SongCacheIndex::GetCacheFilePath( const RString &sGroup, const RString & if( sPath.size() > 2 && sPath[0] == '/' && sPath[sPath.size()-1] == '/' ) s.assign( sPath, 1, sPath.size() - 2 ); + else if( sPath.size() > 1 && sPath[0] == '/' ) + s.assign( sPath, 1, sPath.size() - 1 ); else s = sPath; /* Change slashes and invalid utf-8 characters to _.