diff --git a/src/Etterna/Models/Songs/Song.cpp b/src/Etterna/Models/Songs/Song.cpp index 2f31cc1691..5b3461a4c8 100644 --- a/src/Etterna/Models/Songs/Song.cpp +++ b/src/Etterna/Models/Songs/Song.cpp @@ -309,7 +309,7 @@ Song::LoadFromSongDir(std::string sDir, Calc* calc) ASSERT_M(sDir != "", "Songs can't be loaded from an empty directory!"); // make sure there is a trailing slash at the end of sDir - if (sDir.substr(0, 1) != "/") + if (sDir.back() != '/') sDir += "/"; // save song dir