aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-06-19 23:43:46 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-06-19 23:43:46 +0000
commita5bdf6aaeb716376f9e078fba7ea50ecb636158e (patch)
tree1b1b0706fdcc1df976e4c6f2b32e3c01f2db0e6f /src/playlist.c
parent021f7d87043b2731d527ccc9e6a38c2b4dc270b9 (diff)
downloadmpd-a5bdf6aaeb716376f9e078fba7ea50ecb636158e.tar.gz
mpd-a5bdf6aaeb716376f9e078fba7ea50ecb636158e.tar.xz
mpd-a5bdf6aaeb716376f9e078fba7ea50ecb636158e.zip
fix move command
git-svn-id: https://svn.musicpd.org/mpd/trunk@1574 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/playlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/playlist.c b/src/playlist.c
index 7c5410c66..204c5e231 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -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;