From 183077d57313f1d367f69c573d4ded7a3f1b6c1f Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Wed, 7 Oct 2009 15:22:49 +0200 Subject: [PATCH] fix copy'n'paste bug --- src/song.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/song.cpp b/src/song.cpp index 8806a099..0a00a7c3 100644 --- a/src/song.cpp +++ b/src/song.cpp @@ -274,7 +274,7 @@ void MPD::Song::SetTrack(const std::string &str, unsigned pos) void MPD::Song::SetTrack(unsigned track, unsigned pos) { - SetTag(MPD_TAG_ARTIST, pos, IntoStr(track)); + SetTag(MPD_TAG_TRACK, pos, IntoStr(track)); } void MPD::Song::SetDate(const std::string &str, unsigned pos) @@ -284,7 +284,7 @@ void MPD::Song::SetDate(const std::string &str, unsigned pos) void MPD::Song::SetDate(unsigned year, unsigned pos) { - SetTag(MPD_TAG_TRACK, pos, IntoStr(year)); + SetTag(MPD_TAG_DATE, pos, IntoStr(year)); } void MPD::Song::SetGenre(const std::string &str, unsigned pos)