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 08778094f4)
This commit is contained in:
committed by
Jonathan G Rennison
parent
96d4538055
commit
7fb369c732
@@ -129,7 +129,7 @@ void MusicDriver_ExtMidi::DoPlay()
|
|||||||
FALLTHROUGH;
|
FALLTHROUGH;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
this->song[0] = '\0';
|
this->song.clear();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user