fix move command

git-svn-id: https://svn.musicpd.org/mpd/trunk@1574 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes 2004-06-19 23:43:46 +00:00
parent 021f7d8704
commit a5bdf6aaeb

View File

@ -1049,7 +1049,7 @@ int moveSongInPlaylist(FILE * fp, int from, int to) {
moveSongFromTo(i-1, i);
}
/* put song at _to_ */
playlist.idToNum[playlist.numToId[tmpId]] = to;
playlist.idToNum[tmpId] = to;
playlist.numToId[to] = tmpId;
playlist.songs[to] = tmpSong;
playlist.songMod[to] = playlist.version;