mirror of
https://github.com/clangen/musikcube.git
synced 2024-12-29 18:14:16 +00:00
- fixed tracklist::Standard from repeating the last song.
This commit is contained in:
parent
9ac32bd415
commit
f974d3b898
@ -101,7 +101,7 @@ void Standard::SetCurrentPosition(int position){
|
||||
this->currentPosition = -1;
|
||||
}else{
|
||||
if(position >= (int)this->tracks.size()){
|
||||
this->currentPosition = this->tracks.size()-1;
|
||||
this->currentPosition = this->tracks.size();
|
||||
}else{
|
||||
this->currentPosition = position;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user