aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/sound/drivers/midi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/sound/drivers/midi.cpp b/engines/sci/sound/drivers/midi.cpp
index 93a2308410..37eb37b292 100644
--- a/engines/sci/sound/drivers/midi.cpp
+++ b/engines/sci/sound/drivers/midi.cpp
@@ -563,7 +563,7 @@ void MidiPlayer_Midi::readMt32GmPatch(const byte *data, int size) {
switch (command & 0xf0) {
case 0xf0: {
- byte *sysExEnd = (byte *)memchr(midi + i, 0xf7, midiSize - i);
+ const byte *sysExEnd = (const byte *)memchr(midi + i, 0xf7, midiSize - i);
if (!sysExEnd)
error("Failed to find end of sysEx");