diff --git a/stepmania/src/NotesLoaderBMS.cpp b/stepmania/src/NotesLoaderBMS.cpp index 99b975e76e..8f83516b63 100644 --- a/stepmania/src/NotesLoaderBMS.cpp +++ b/stepmania/src/NotesLoaderBMS.cpp @@ -219,7 +219,7 @@ static bool GetTagFromMap( const NameToData_t &mapNameToData, const RString &sNa /* Finds the longest common match for the given tag in all files. If the given tag * was found in at least one file, returns true; otherwise returns false. */ -static bool GetCommonTagFromMapList( const vector &aBMSData, const RString &sName, RString &sCommonTag ) +static bool GetCommonTagFromMapList( const vector &aBMSData, const RString &sName, RString &sOut ) { bool bFoundOne = false; for( unsigned i=0; i < aBMSData.size(); i++ ) @@ -231,11 +231,11 @@ static bool GetCommonTagFromMapList( const vector &aBMSData, const if( !bFoundOne ) { bFoundOne = true; - sCommonTag = sTag; + sOut = sTag; } else { - sCommonTag = FindLargestInitialSubstring( sCommonTag, sTag ); + sOut = FindLargestInitialSubstring( sOut, sTag ); } }