Skip to content

Commit

Permalink
note to self fix the rest of these bad conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Jun 29, 2020
1 parent cabc1ab commit e1b7808
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Etterna/Models/Songs/Song.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e1b7808

Please sign in to comment.