aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorGregory Montoir2005-09-11 14:35:34 +0000
committerGregory Montoir2005-09-11 14:35:34 +0000
commitad3c2e1dbca0f7710bf78e2d1bcde8e6f7858d5a (patch)
treec09dd3659913409ad4d1ec988207091125438b9f /sound
parent43ec42e9e199137691ea39220be72badaa499341 (diff)
downloadscummvm-rg350-ad3c2e1dbca0f7710bf78e2d1bcde8e6f7858d5a.tar.gz
scummvm-rg350-ad3c2e1dbca0f7710bf78e2d1bcde8e6f7858d5a.tar.bz2
scummvm-rg350-ad3c2e1dbca0f7710bf78e2d1bcde8e6f7858d5a.zip
committed patch #1281714 'Kyra 1 Sound Patch'. Thanks LordHoto.
svn-id: r18807
Diffstat (limited to 'sound')
-rw-r--r--sound/midiparser_xmidi.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/sound/midiparser_xmidi.cpp b/sound/midiparser_xmidi.cpp
index 3ee08ccb7d..9ad5bfafb9 100644
--- a/sound/midiparser_xmidi.cpp
+++ b/sound/midiparser_xmidi.cpp
@@ -51,11 +51,7 @@ public:
// This is a special XMIDI variable length quantity
uint32 MidiParser_XMIDI::readVLQ2(byte * &pos) {
uint32 value = 0;
- int i;
-
- for (i = 0; i < 4; ++i) {
- if (pos[0] & 0x80)
- break;
+ while (!(pos[0] & 0x80)) {
value += *pos++;
}
return value;