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

hg/feature/sound
kervala 15 years ago
parent de682be280
commit 91f233c5fb

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

Loading…
Cancel
Save