From a6c7b3dd37f339558242990e888a58165cb9e236 Mon Sep 17 00:00:00 2001 From: Nimetu Date: Tue, 31 Mar 2020 17:37:48 +0300 Subject: [PATCH] Fixed: mp3 player keeps playing after clearing files from playlist --- code/ryzom/client/src/interface_v3/music_player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/ryzom/client/src/interface_v3/music_player.cpp b/code/ryzom/client/src/interface_v3/music_player.cpp index f4d8b7db9..717ea7e66 100644 --- a/code/ryzom/client/src/interface_v3/music_player.cpp +++ b/code/ryzom/client/src/interface_v3/music_player.cpp @@ -85,7 +85,7 @@ void CMusicPlayer::playSongs (const std::vector &songs) rebuildPlaylist(); // If pause, stop, else play will resume - if (_State == Paused) + if (_State == Paused || _Songs.empty()) _State = Stopped; }