Fixed: #908 Incorrect method CMusicPlayer::previous() (patch provided by lubos)

This commit is contained in:
kervala 2010-05-17 11:22:16 +02:00
parent a7c13ecb71
commit 344b890a65

View file

@ -108,8 +108,11 @@ void CMusicPlayer::previous ()
if (!_Songs.empty())
{
// Point the previous song
_CurrentSong--;
_CurrentSong%=_Songs.size();
if (_CurrentSong == 0)
_CurrentSong = _Songs.size()-1;
else
_CurrentSong--;
play ();
}
}