Fix AL_INVALID_NAME when exit pause menu with fast music on

This commit is contained in:
Benau 2019-10-11 21:40:00 +08:00
parent a1e4bbc3c1
commit f56cf03b6a

View File

@ -235,14 +235,14 @@ bool MusicOggStream::pauseMusic()
//-----------------------------------------------------------------------------
bool MusicOggStream::resumeMusic()
{
m_playing.store(true);
if (m_fileName == "")
{
// nothing is loaded
return true;
}
m_playing.store(true);
alSourcePlay(m_soundSource);
m_pausedMusic= false;
return true;