- fixed tracklist::Standard from repeating the last song.

This commit is contained in:
Daniel Önnerby 2008-04-24 19:51:40 +00:00
parent 9ac32bd415
commit f974d3b898

View File

@ -101,7 +101,7 @@ void Standard::SetCurrentPosition(int position){
this->currentPosition = -1; this->currentPosition = -1;
}else{ }else{
if(position >= (int)this->tracks.size()){ if(position >= (int)this->tracks.size()){
this->currentPosition = this->tracks.size()-1; this->currentPosition = this->tracks.size();
}else{ }else{
this->currentPosition = position; this->currentPosition = position;
} }