summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-05-30 11:24:06 +0000
committeralberth <alberth@openttd.org>2009-05-30 11:24:06 +0000
commit2a2a9a27ba0cf2550116fd5f84e0a5c95c208c80 (patch)
treeb182920610375ff311f7bad013a32788f3615e32 /src
parent5eecf3e5cb6da881ca4095561d19dfc4364d2823 (diff)
downloadopenttd-2a2a9a27ba0cf2550116fd5f84e0a5c95c208c80.tar.xz
(svn r16464) -Codechange (r16422): Added a missing const_cast<>
Diffstat (limited to 'src')
-rw-r--r--src/music/libtimidity.cpp2
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. */