mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r16464) -Codechange (r16422): Added a missing const_cast<>
This commit is contained in:
parent
5eecf3e5cb
commit
2a2a9a27ba
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue