From c7312adc90886dfe79e43ddb9e20bbd3e5c1c1df Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 5 Sep 2003 20:07:36 +0000 Subject: [PATCH] Oops. Left, not right. Simplify. --- stepmania/src/RageUtil_FileDB.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/RageUtil_FileDB.cpp b/stepmania/src/RageUtil_FileDB.cpp index 5dbcc8e1c9..6563bfb66c 100644 --- a/stepmania/src/RageUtil_FileDB.cpp +++ b/stepmania/src/RageUtil_FileDB.cpp @@ -261,7 +261,7 @@ bool FilenameDB::ResolvePath(CString &path) split(path, SLASH, p, true); /* If we have "/foo", then add a blank entry to the beginning to line things up. */ - if( path.Right( strlen(SLASH) ) == SLASH ) + if( path.Left( strlen(SLASH) ) == SLASH ) p.insert( p.begin(), "" ); /* Resolve each component. Assume the first component is correct. XXX @@ -272,7 +272,7 @@ bool FilenameDB::ResolvePath(CString &path) ret += SLASH; vector lst; - FileSet &fs = GetFileSet(ret.c_str()); + FileSet &fs = GetFileSet( ret ); fs.GetFilesEqualTo(p[i], lst, false); /* If there were no matches, the path isn't found. */