aboutsummaryrefslogtreecommitdiff
path: root/scumm/midiparser_eup.cpp
diff options
context:
space:
mode:
authorMax Horn2003-10-05 15:45:49 +0000
committerMax Horn2003-10-05 15:45:49 +0000
commit4089ab534775428569bee8a47f05c5994d5e2125 (patch)
tree3490fe3b62898fca38f14b5b9759e77029dd88ba /scumm/midiparser_eup.cpp
parenta722d0601e4ae87b15fe09f62b3a1076c6c8646e (diff)
downloadscummvm-rg350-4089ab534775428569bee8a47f05c5994d5e2125.tar.gz
scummvm-rg350-4089ab534775428569bee8a47f05c5994d5e2125.tar.bz2
scummvm-rg350-4089ab534775428569bee8a47f05c5994d5e2125.zip
fix compilation
svn-id: r10616
Diffstat (limited to 'scumm/midiparser_eup.cpp')
-rw-r--r--scumm/midiparser_eup.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/scumm/midiparser_eup.cpp b/scumm/midiparser_eup.cpp
index 8ba23c1a96..e6d1191fdf 100644
--- a/scumm/midiparser_eup.cpp
+++ b/scumm/midiparser_eup.cpp
@@ -161,6 +161,7 @@ void MidiParser_EUP::parseNextEvent (EventInfo &info) {
bool MidiParser_EUP::loadMusic (byte *data, uint32 size) {
unloadMusic();
byte *pos = data;
+ int i;
if (memcmp (pos, "SO", 2)) {
printf ("Warning: 'SO' header expected but found '%c%c' instead.\n", pos[0], pos[1]);
@@ -169,7 +170,7 @@ bool MidiParser_EUP::loadMusic (byte *data, uint32 size) {
byte numInstruments = pos[16];
pos += 16 + 2;
- for (int i = 0; i < numInstruments; ++i) {
+ for (i = 0; i < numInstruments; ++i) {
_instruments[i][0] = 0x7C;
memcpy (&_instruments[i][2], pos, 48);
pos += 48;