mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-26 08:46:19 +00:00
Fixed: #908 Incorrect method CMusicPlayer::previous() (patch provided by lubos)
This commit is contained in:
parent
a7c13ecb71
commit
344b890a65
1 changed files with 5 additions and 2 deletions
|
@ -108,8 +108,11 @@ void CMusicPlayer::previous ()
|
||||||
if (!_Songs.empty())
|
if (!_Songs.empty())
|
||||||
{
|
{
|
||||||
// Point the previous song
|
// Point the previous song
|
||||||
_CurrentSong--;
|
if (_CurrentSong == 0)
|
||||||
_CurrentSong%=_Songs.size();
|
_CurrentSong = _Songs.size()-1;
|
||||||
|
else
|
||||||
|
_CurrentSong--;
|
||||||
|
|
||||||
play ();
|
play ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue