From 82cb271f726e726950a51f1e89641e8f0cb3adf9 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 11 Feb 2004 20:36:48 +0000 Subject: [PATCH] g_Mountpoints fix --- stepmania/src/RageUtil_FileDB.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stepmania/src/RageUtil_FileDB.cpp b/stepmania/src/RageUtil_FileDB.cpp index da092f2f59..2309eaef81 100644 --- a/stepmania/src/RageUtil_FileDB.cpp +++ b/stepmania/src/RageUtil_FileDB.cpp @@ -285,7 +285,9 @@ void FilenameDB::AddFile( const CString &sPath, int size, int hash, void *priv ) do { /* Combine all but the last part. */ - CString dir = join( "/", begin, end-1 ) + "/"; + CString dir = join( "/", begin, end-1 ); + if( dir != "" ) + dir += "/"; const CString &fn = *(end-1); FileSet *fs = GetFileSet( dir );