From 7fb369c732e9346b5806f951345ac40cfe9c97ad Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Fri, 17 Nov 2023 17:42:19 +0000 Subject: [PATCH] Fix: extmidi did not move on to next song after playing ends. (#11469) `song` is no longer a C-style string so cannot be cleared by writing a NUL char. Use `.clear()` to properly clear a std::string. (cherry picked from commit 08778094f409ae9ad6bd93d4b876655ed57d803e) --- src/music/extmidi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/music/extmidi.cpp b/src/music/extmidi.cpp index 5e03905092..dca4fc5f0d 100644 --- a/src/music/extmidi.cpp +++ b/src/music/extmidi.cpp @@ -129,7 +129,7 @@ void MusicDriver_ExtMidi::DoPlay() FALLTHROUGH; default: - this->song[0] = '\0'; + this->song.clear(); break; } }