Song: do not stop playback twice
Otherwise we reset data which doesn't need to be reset when stopped already. Closes #255.
This commit is contained in:
@@ -554,6 +554,12 @@ void song::togglePause()
|
||||
|
||||
void song::stop()
|
||||
{
|
||||
// do not stop/reset things again if we're stopped already
|
||||
if( m_playMode == Mode_None )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
timeLine * tl = m_playPos[m_playMode].m_timeLine;
|
||||
m_playing = false;
|
||||
m_paused = false;
|
||||
|
||||
Reference in New Issue
Block a user