aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/cruise/sound.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/cruise/sound.cpp b/engines/cruise/sound.cpp
index 6a30112227..3f8782d1ae 100644
--- a/engines/cruise/sound.cpp
+++ b/engines/cruise/sound.cpp
@@ -255,7 +255,9 @@ void PCSoundDriver::findNote(int freq, int *note, int *oct) const {
break;
}
}
+
*oct = *note / 12;
+ *note %= 12;
}
void PCSoundDriver::resetChannel(int channel) {