1
0
Fork 0

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.
pull/11471/head
Peter Nelson 2023-11-17 17:42:19 +00:00 committed by GitHub
parent b2d4d90502
commit 08778094f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ void MusicDriver_ExtMidi::DoPlay()
FALLTHROUGH;
default:
this->song[0] = '\0';
this->song.clear();
break;
}
}