From 2f024e270199d5fc2d38d62150b689a1fdca0b1d Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sat, 15 Apr 2006 12:19:38 +0000 Subject: Increase size of variable array entries, to prevent overflows that often occur in FF. The original FF used unsigned variable arrays, but Simon 1/2 requires a signed variable array. svn-id: r21905 --- engines/simon/simon.h | 4 ++-- engines/simon/vga.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'engines') diff --git a/engines/simon/simon.h b/engines/simon/simon.h index 117508c184..cbe6c7935e 100644 --- a/engines/simon/simon.h +++ b/engines/simon/simon.h @@ -385,8 +385,8 @@ protected: uint16 _speechIdArray4[40]; uint16 _bitArray[48]; - int16 _variableArray[256]; - int16 _variableArray2[256]; + int32 _variableArray[256]; + int32 _variableArray2[256]; WindowBlock *_windowArray[16]; diff --git a/engines/simon/vga.cpp b/engines/simon/vga.cpp index a6856240d6..c78835c878 100644 --- a/engines/simon/vga.cpp +++ b/engines/simon/vga.cpp @@ -1909,7 +1909,7 @@ void SimonEngine::vc48_setPathFinder() { int step; int y1, y2; - int16 *vp; + int32 *vp; step = 2; if (c < 0) { -- cgit v1.2.3