diff --git a/src/NotesLoaderBMS.cpp b/src/NotesLoaderBMS.cpp index 32c96bee62..6fdf6f29cc 100644 --- a/src/NotesLoaderBMS.cpp +++ b/src/NotesLoaderBMS.cpp @@ -787,7 +787,7 @@ static void ReadGlobalTags( const NameToData_t &mapNameToData, Song &out, Measur // FIXME: garbled song names seem to crash the app. // this might not be the best place to put this code. - if( !utf8_is_valid(sData) ) + if( !utf8_is_valid(nData) ) continue; /* Due to bugs in some programs, many BMS files have a "WAV" extension