From d3cbbdf8e98090f88451fa65e967847b9c510847 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 16 Dec 2003 20:35:09 +0000 Subject: [PATCH] const fix --- stepmania/src/RageUtil_FileDB.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/stepmania/src/RageUtil_FileDB.cpp b/stepmania/src/RageUtil_FileDB.cpp index a8e6a4bdb3..8427607f9d 100644 --- a/stepmania/src/RageUtil_FileDB.cpp +++ b/stepmania/src/RageUtil_FileDB.cpp @@ -323,8 +323,11 @@ void FilenameDB::DelFile( const CString &sPath ) { FileSet *Clean = it->second; for( set::iterator f = Clean->files.begin(); f != Clean->files.end(); ++f ) - if( f->dirp == fs ) - f->dirp = NULL; + { + File &ff = (File &) *f; + if( ff.dirp == fs ) + ff.dirp = NULL; + } } delete fs;