Fix AL_INVALID_NAME when exit pause menu with fast music on
This commit is contained in:
parent
a1e4bbc3c1
commit
f56cf03b6a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user