From 921d01b59d669ab727e2e6b14580ef064b344b0e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 26 Nov 2014 08:25:48 +0100 Subject: Playlist: add another assertion --- src/queue/Playlist.cxx | 1 + 1 file changed, 1 insertion(+) 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 */ -- cgit v1.2.3