aboutsummaryrefslogtreecommitdiffstats
path: root/src/queue/Playlist.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-11-26 08:25:48 +0100
committerMax Kellermann <max@duempel.org>2014-11-26 08:25:48 +0100
commit921d01b59d669ab727e2e6b14580ef064b344b0e (patch)
tree4eff822feb905a411978e2531b303d5d2f935262 /src/queue/Playlist.cxx
parent8aa4a66ba03e8d2726fb7fddac53a892c41f1711 (diff)
downloadmpd-921d01b59d669ab727e2e6b14580ef064b344b0e.tar.gz
mpd-921d01b59d669ab727e2e6b14580ef064b344b0e.tar.xz
mpd-921d01b59d669ab727e2e6b14580ef064b344b0e.zip
Playlist: add another assertion
Diffstat (limited to 'src/queue/Playlist.cxx')
-rw-r--r--src/queue/Playlist.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/queue/Playlist.cxx b/src/queue/Playlist.cxx
index 40495b330..47b023637 100644
--- a/src/queue/Playlist.cxx
+++ b/src/queue/Playlist.cxx
@@ -68,6 +68,7 @@ playlist::QueuedSongStarted(PlayerControl &pc)
{
assert(pc.next_song == nullptr);
assert(queued >= -1);
+ assert(current >= 0);
/* queued song has started: copy queued to current,
and notify the clients */