Skip to content

Commit 4af9653

Browse files
committed
this should be fixed somewhere else, but fixing it here for now
1 parent bb6c033 commit 4af9653

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Source/Managers/MusicMan.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,10 @@ bool MusicMan::SetNextDynamicSongSection(const std::string& newSongSectionType,
144144
if (m_PreviousSoundContainerSetToFade) {
145145
//g_ConsoleMan.PrintString("MusicMan: Immediately played new song section has stopped PreviousSoundContainer.");
146146
m_PreviousSoundContainerSetToFade = false;
147-
m_PreviousSoundContainer->Stop();
148-
m_PreviousSoundContainer = nullptr;
147+
if (m_PreviousSoundContainer) {
148+
m_PreviousSoundContainer->Stop();
149+
m_PreviousSoundContainer = nullptr;
150+
}
149151
}
150152
CyclePlayingSoundContainers(smoothFade);
151153
}

0 commit comments

Comments
 (0)