aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/avalanche/gyro.h3
-rw-r--r--engines/avalanche/scrolls.cpp4
2 files changed, 4 insertions, 3 deletions
diff --git a/engines/avalanche/gyro.h b/engines/avalanche/gyro.h
index 51b6c155f1..155feee8de 100644
--- a/engines/avalanche/gyro.h
+++ b/engines/avalanche/gyro.h
@@ -216,9 +216,10 @@ public:
static const QuasipedType kQuasipeds[16];
enum Pitch {
+ kPitchInvalid,
kPitchLower,
kPitchSame,
- kPitchHigher
+ kPitchHigher,
};
static const uint16 kNotes[12];
diff --git a/engines/avalanche/scrolls.cpp b/engines/avalanche/scrolls.cpp
index 9e56170226..8936bfad8b 100644
--- a/engines/avalanche/scrolls.cpp
+++ b/engines/avalanche/scrolls.cpp
@@ -215,8 +215,8 @@ void Scrolls::scrollModeMusic() {
TuneType played;
for (int i = 0; i < sizeof(played); i++)
- played[i] = 0;
- byte lastOne = 0, thisOne = 0;
+ played[i] = Gyro::kPitchInvalid;
+ int8 lastOne = -1, thisOne = -1; // Invalid values.
_vm->_gyro->_seeScroll = true;