diff options
Diffstat (limited to 'src/playlist.c')
-rw-r--r-- | src/playlist.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/playlist.c b/src/playlist.c index 5d17f8cb9..4580ccbcc 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -123,10 +123,11 @@ playlist_tag_event(void) { unsigned song; - if (playlist_state != PLAYLIST_STATE_PLAY) + if (playlist_state != PLAYLIST_STATE_PLAY || + playlist.current < 0) return; - assert(playlist.current >= 0); + assert((unsigned)playlist.current < playlist.length); song = playlist.order[playlist.current]; playlist.songMod[song] = playlist.version; |