diff options
author | alberth <alberth@openttd.org> | 2009-05-30 11:24:06 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2009-05-30 11:24:06 +0000 |
commit | 2a2a9a27ba0cf2550116fd5f84e0a5c95c208c80 (patch) | |
tree | b182920610375ff311f7bad013a32788f3615e32 /src | |
parent | 5eecf3e5cb6da881ca4095561d19dfc4364d2823 (diff) | |
download | openttd-2a2a9a27ba0cf2550116fd5f84e0a5c95c208c80.tar.xz |
(svn r16464) -Codechange (r16422): Added a missing const_cast<>
Diffstat (limited to 'src')
-rw-r--r-- | src/music/libtimidity.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/music/libtimidity.cpp b/src/music/libtimidity.cpp index eedc75d60..c8e2a7734 100644 --- a/src/music/libtimidity.cpp +++ b/src/music/libtimidity.cpp @@ -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. */ |