From 08778094f409ae9ad6bd93d4b876655ed57d803e 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. --- 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 77b7a0c4d6..86b8bb57c0 100644 --- a/src/music/extmidi.cpp +++ b/src/music/extmidi.cpp @@ -125,7 +125,7 @@ void MusicDriver_ExtMidi::DoPlay() FALLTHROUGH; default: - this->song[0] = '\0'; + this->song.clear(); break; } }