mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-24 01:48:44 +00:00
Fixed: #908 Incorrect method CMusicPlayer::previous() (patch provided by lubos)
This commit is contained in:
parent
de682be280
commit
91f233c5fb
1 changed files with 5 additions and 2 deletions
|
@ -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 ();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue