1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Fix regression, halt only when suspend

This commit is contained in:
Mathieu Schroeter 2017-12-01 10:44:23 +01:00
parent 7c3c0421ee
commit 315117e7da

View File

@ -87,7 +87,6 @@ CSound::~CSound ()
if (m_pMusic)
{
Mix_HaltMusic ();
Mix_FreeMusic (m_pMusic);
m_pMusic = nullptr;
}
@ -338,10 +337,7 @@ CSound::PlayMusic (const std::string & lpszMIDIFilename)
path += lpszMIDIFilename;
if (m_pMusic)
{
Mix_HaltMusic ();
Mix_FreeMusic (m_pMusic);
}
m_pMusic = Mix_LoadMUS (path.c_str ());
if (!m_pMusic)