mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-14 01:59:09 +00:00
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.
This commit is contained in:
@@ -125,7 +125,7 @@ void MusicDriver_ExtMidi::DoPlay()
|
||||
FALLTHROUGH;
|
||||
|
||||
default:
|
||||
this->song[0] = '\0';
|
||||
this->song.clear();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user