diff --git a/stepmania/src/RageSound.cpp b/stepmania/src/RageSound.cpp index 70d28b07d9..6d542ff3f6 100644 --- a/stepmania/src/RageSound.cpp +++ b/stepmania/src/RageSound.cpp @@ -592,6 +592,10 @@ bool RageSound::SetPositionFrames( int iFrames ) return false; } + /* If we're already there, don't do anything. */ + if( m_iSourceFrame == iFrames ) + return true; + int iRet = m_pSource->SetPosition( iFrames ); if( iRet == -1 ) { @@ -599,14 +603,8 @@ bool RageSound::SetPositionFrames( int iFrames ) return false; /* failed */ } - { - /* If we're already there, don't do anything. */ - if( m_iSourceFrame == iFrames ) - return true; - - m_iSourceFrame = iFrames; - m_iStoppedSourceFrame = iFrames; - } + m_iSourceFrame = iFrames; + m_iStoppedSourceFrame = iFrames; if( iRet == 0 ) {