diff options
Diffstat (limited to 'engines/mads')
-rw-r--r-- | engines/mads/palette.cpp | 6 | ||||
-rw-r--r-- | engines/mads/staticres.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/engines/mads/palette.cpp b/engines/mads/palette.cpp index 7651fe8e65..de870295a5 100644 --- a/engines/mads/palette.cpp +++ b/engines/mads/palette.cpp @@ -665,15 +665,15 @@ void Fader::insertionSort(int size, byte *id, byte *value) { int moveCount = size - arrIndex - 1; if (moveCount > 0) { - Common::copy(idP + 1, idP + moveCount + 2, idP); - Common::copy(valueP + 1, valueP + moveCount + 2, valueP); + Common::copy(idP + 1, idP + moveCount + 1, idP); + Common::copy(valueP + 1, valueP + moveCount + 1, valueP); } // Scan for insert spot int idx = 0; if (endIndex > 0) { bool breakFlag = false; - for (; idx <= endIndex && !breakFlag; ++idx) { + for (; idx <= endIndex - 1 && !breakFlag; ++idx) { breakFlag = savedId < id[idx]; } } diff --git a/engines/mads/staticres.cpp b/engines/mads/staticres.cpp index b659d9a27c..6cb76a1d89 100644 --- a/engines/mads/staticres.cpp +++ b/engines/mads/staticres.cpp @@ -43,7 +43,7 @@ const char *const kFenceStr = "fence"; const char *const kOverStr = "over"; const char *const kGameReleaseInfoStr = "ScummVM rev: 8.43 14-Sept-92"; -const char *const kGameReleaseTitleStr = "GAME RELASE VERSION INFO"; +const char *const kGameReleaseTitleStr = "GAME RELEASE VERSION INFO"; const uint32 DEFAULT_VGA_LOW_PALETTE[16] = { 0x000000, 0x0000a8, 0x00a800, 0x00a8a8, 0xa80000, 0xa800a8, 0xa85400, 0xa8a8a8, |