aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction
diff options
context:
space:
mode:
authorNicola Mettifogo2007-11-02 08:34:56 +0000
committerNicola Mettifogo2007-11-02 08:34:56 +0000
commit610d9a2ce7831fd18e1917fd2131a14f31cfe1b2 (patch)
tree91388b2721ceb3b45bd76a0df7b8ac9b61667ccc /engines/parallaction
parentca1b941d02b0bf331dbb535196a305fa9d497f37 (diff)
downloadscummvm-rg350-610d9a2ce7831fd18e1917fd2131a14f31cfe1b2.tar.gz
scummvm-rg350-610d9a2ce7831fd18e1917fd2131a14f31cfe1b2.tar.bz2
scummvm-rg350-610d9a2ce7831fd18e1917fd2131a14f31cfe1b2.zip
Fixed overflow after fadeout in the last game location (bug #1824026).
svn-id: r29374
Diffstat (limited to 'engines/parallaction')
-rw-r--r--engines/parallaction/parallaction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/parallaction/parallaction.cpp b/engines/parallaction/parallaction.cpp
index 085fa492fa..9ae5e97d0c 100644
--- a/engines/parallaction/parallaction.cpp
+++ b/engines/parallaction/parallaction.cpp
@@ -870,7 +870,7 @@ void Parallaction::switchBackground(const char* background, const char* mask) {
uint16 v2 = 0;
if (!scumm_stricmp(background, "final")) {
_gfx->clearScreen(Gfx::kBitBack);
- for (uint16 _si = 0; _si <= 32; _si++) {
+ for (uint16 _si = 0; _si < 32; _si++) {
pal.setEntry(_si, v2, v2, v2);
v2 += 4;
}