diff --git a/src/SongManager.cpp b/src/SongManager.cpp index 97d7de2..2164283 100644 --- a/src/SongManager.cpp +++ b/src/SongManager.cpp @@ -1,5 +1,6 @@ #include "SongManager.hpp" #include "Utils.hpp" +#include SongManager::SongManager() {} @@ -17,7 +18,7 @@ void SongManager::pickRandomSong() { if (m_songs.size() >= 1) { m_currentSong = m_songs[Utils::randomIndex(m_songs.size())]; } else { - m_currentSong = ""; + m_currentSong = GameManager::get()->getMenuMusicFile(); } } diff --git a/src/main.cpp b/src/main.cpp index a3b717f..c79b092 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -15,9 +15,6 @@ SongManager &songManager = SongManager::get(); struct GameManagerHook : Modify { gd::string getMenuMusicFile() { - if (songManager.getCurrentSong().empty()) - return GameManager::getMenuMusicFile(); - return songManager.getCurrentSong(); } };