diff options
-rw-r--r-- | engines/cine/sound.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/cine/sound.cpp b/engines/cine/sound.cpp index d882809956..c909474093 100644 --- a/engines/cine/sound.cpp +++ b/engines/cine/sound.cpp @@ -246,7 +246,9 @@ private: void PCSoundDriver::findNote(int freq, int *note, int *oct) const { *note = _noteTableCount - 1; - for (int i = 0; i < _noteTableCount; ++i) { + // It might seem odd that we start with 1 here, but the original has the + // same behavior. + for (int i = 1; i < _noteTableCount; ++i) { if (_noteTable[i] <= freq) { *note = i; break; |