diff --git a/stepmania/src/RageUtil.cpp b/stepmania/src/RageUtil.cpp index 0df150c24f..8c7700e95f 100644 --- a/stepmania/src/RageUtil.cpp +++ b/stepmania/src/RageUtil.cpp @@ -321,7 +321,7 @@ CString GetExtension( CString sPath ) if( pos == sPath.npos ) return ""; - unsigned slash = sPath.find( '/', slash ); + unsigned slash = sPath.find( '/', pos ); if( slash != sPath.npos ) return ""; /* rare: path/dir.ext/fn */