(svn r16464) -Codechange (r16422): Added a missing const_cast<>

This commit is contained in:
alberth 2009-05-30 11:24:06 +00:00
parent 5eecf3e5cb
commit 2a2a9a27ba
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ const char *MusicDriver_LibTimidity::Start(const char * const *param)
_midi.status = MIDI_STOPPED;
_midi.song = NULL;
if (mid_init(param == NULL ? NULL : (char *)param[0]) < 0) {
if (mid_init(param == NULL ? NULL : const_cast<char *>(param[0])) < 0) {
/* If init fails, it can be because no configuration was found.
* If it was not forced via param, try to load it without a
* configuration. Who knows that works. */