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:
Tobias Doerffel
2014-03-10 18:50:33 +01:00
parent 9e86990f41
commit ed6ccddc6c

View File

@@ -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;