diff options
author | uruk | 2013-09-21 14:49:35 +0200 |
---|---|---|
committer | uruk | 2013-09-21 14:49:35 +0200 |
commit | e0b4280a949606d63d438cdb3046f630f837f183 (patch) | |
tree | 00c2f41e8410ff2cd42268a6c6d9d814b58670f1 /engines/avalanche | |
parent | 897a0d0a61cc393a80a276b94d37c2d0d7c8dfbc (diff) | |
download | scummvm-rg350-e0b4280a949606d63d438cdb3046f630f837f183.tar.gz scummvm-rg350-e0b4280a949606d63d438cdb3046f630f837f183.tar.bz2 scummvm-rg350-e0b4280a949606d63d438cdb3046f630f837f183.zip |
AVALANCHE: Change byte to unsigned int in for loops.
Diffstat (limited to 'engines/avalanche')
-rw-r--r-- | engines/avalanche/scrolls.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/avalanche/scrolls.cpp b/engines/avalanche/scrolls.cpp index 0b1b4a4870..e5d08ecfc6 100644 --- a/engines/avalanche/scrolls.cpp +++ b/engines/avalanche/scrolls.cpp @@ -193,7 +193,7 @@ void Scrolls::store(byte what, TuneType &played) { bool Scrolls::theyMatch(TuneType &played) { byte mistakes = 0; - for (byte i = 0; i < sizeof(played); i++) { + for (unsigned int i = 0; i < sizeof(played); i++) { if (played[i] != _vm->_gyro->kTune[i]) mistakes += 1; } @@ -208,7 +208,7 @@ void Scrolls::scrollModeMusic() { _vm->_gyro->newMouse(3); TuneType played; - for (byte i = 0; i < sizeof(played); i++) + for (unsigned int i = 0; i < sizeof(played); i++) played[i] = Gyro::kPitchInvalid; int8 lastOne = -1, thisOne = -1; // Invalid values. |