aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
Diffstat (limited to 'backends')
-rw-r--r--backends/midi/adlib.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/backends/midi/adlib.cpp b/backends/midi/adlib.cpp
index b89d09c2b2..734f4632a6 100644
--- a/backends/midi/adlib.cpp
+++ b/backends/midi/adlib.cpp
@@ -1244,6 +1244,7 @@ void MidiDriver_ADLIB::adlib_playnote(int channel, int note) {
int i;
note2 = (note >> 7) - 4;
+ note2 = (note2 < 128) ? note2 : 0;
oct = (note2 / 12);
if (oct > 7)