Skip to content

Commit 9a6d28f

Browse files
committed
null NextSongSection properly
1 parent 18b8894 commit 9a6d28f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Source/Managers/MusicMan.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ void MusicMan::ResetMusicState() {
100100

101101
bool MusicMan::PlayDynamicSong(const std::string& songName, const std::string& songSectionType, bool playImmediately, bool playTransition, bool smoothFade) {
102102
if (const DynamicSong* dynamicSongToPlay = dynamic_cast<const DynamicSong*>(g_PresetMan.GetEntityPreset("DynamicSong", songName))) {
103+
m_NextSongSection = nullptr;
103104
m_CurrentSong = std::unique_ptr<DynamicSong>(dynamic_cast<DynamicSong*>(dynamicSongToPlay->Clone()));
104105
SetNextSongSectionType(songSectionType);
105106
SelectNextSongSection();

0 commit comments

Comments
 (0)