aboutsummaryrefslogtreecommitdiff
path: root/sound/mididrv.cpp
diff options
context:
space:
mode:
authorMax Horn2002-08-18 17:48:18 +0000
committerMax Horn2002-08-18 17:48:18 +0000
commitedae5b06db08b3c614b1efc0fe49c214857cbcc8 (patch)
tree0e5092c1816feef55b4deebe5b9049468969db83 /sound/mididrv.cpp
parent97d127252bf5ae7958cd0ded27855be3c2188fa6 (diff)
downloadscummvm-rg350-edae5b06db08b3c614b1efc0fe49c214857cbcc8.tar.gz
scummvm-rg350-edae5b06db08b3c614b1efc0fe49c214857cbcc8.tar.bz2
scummvm-rg350-edae5b06db08b3c614b1efc0fe49c214857cbcc8.zip
MAJOR change to the way how Engine objects are instantiated
svn-id: r4758
Diffstat (limited to 'sound/mididrv.cpp')
-rw-r--r--sound/mididrv.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/mididrv.cpp b/sound/mididrv.cpp
index de93ddc8eb..c261395c39 100644
--- a/sound/mididrv.cpp
+++ b/sound/mididrv.cpp
@@ -1118,7 +1118,7 @@ void MidiDriver_MIDIEMU::send(uint32 b)
unsigned char note = (unsigned char)((b >> 8) & 0x7F);
unsigned char vel = (unsigned char)((b >> 16) & 0x7F);
int i, j;
- int onl, on, nv;
+ int onl, on, nv = 0;
unsigned char ins[11];
on = -1;
if (ch[channel].on != 0) {
@@ -1306,7 +1306,7 @@ int MidiDriver_MIDIEMU::midiemu_callback_thread(void *param)
bool need_midi_data = true;
for (;;) {
- int number;
+ int number = 0;
int i;
if (need_midi_data) {