diff --git a/src/tracks/track.cpp b/src/tracks/track.cpp index b4d54e07d..661466a36 100644 --- a/src/tracks/track.cpp +++ b/src/tracks/track.cpp @@ -550,7 +550,6 @@ void Track::loadTrackInfo() root->get("version", &m_version); std::vector filenames; root->get("music", &filenames); - getMusicInformation(filenames, m_music); root->get("screenshot", &m_screenshot); root->get("gravity", &m_gravity); root->get("friction", &m_friction); @@ -573,6 +572,7 @@ void Track::loadTrackInfo() root->get("color-level-in", &m_color_inlevel); root->get("color-level-out", &m_color_outlevel); + getMusicInformation(filenames, m_music); if (m_default_number_of_laps <= 0) m_default_number_of_laps = 3; m_actual_number_of_laps = m_default_number_of_laps; @@ -702,7 +702,7 @@ void Track::getMusicInformation(std::vector& filenames, } // for i in filenames - if (m_music.empty()) + if (m_music.empty() && !isInternal() && !m_is_cutscene) { m_music.push_back(stk_config->m_default_music);