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() bool MusicOggStream::resumeMusic()
{ {
m_playing.store(true);
if (m_fileName == "") if (m_fileName == "")
{ {
// nothing is loaded // nothing is loaded
return true; return true;
} }
m_playing.store(true);
alSourcePlay(m_soundSource); alSourcePlay(m_soundSource);
m_pausedMusic= false; m_pausedMusic= false;
return true; return true;