aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2010-10-11 17:07:34 +0000
committerJohannes Schickel2010-10-11 17:07:34 +0000
commitc3366755ef6f0614ccc97ad41caaf39c026a3c31 (patch)
treedfb04c05b416102022ef36e0e032812db8c17113
parented93a5895515efaff95b7a39e43b4525d254e47b (diff)
downloadscummvm-rg350-c3366755ef6f0614ccc97ad41caaf39c026a3c31.tar.gz
scummvm-rg350-c3366755ef6f0614ccc97ad41caaf39c026a3c31.tar.bz2
scummvm-rg350-c3366755ef6f0614ccc97ad41caaf39c026a3c31.zip
PARALLACTION: Fix out of bounds access.
This is a partial commit of patch #3085298 "overflows in agi and parallaction". svn-id: r53146
-rw-r--r--engines/parallaction/balloons.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/parallaction/balloons.cpp b/engines/parallaction/balloons.cpp
index 95f85f6cff..1992b8dbc0 100644
--- a/engines/parallaction/balloons.cpp
+++ b/engines/parallaction/balloons.cpp
@@ -248,7 +248,7 @@ class BalloonManager_ns : public BalloonManager {
Parallaction_ns *_vm;
static int16 _dialogueBalloonX[5];
- byte _textColors[2];
+ byte _textColors[3];
struct Balloon {
Common::Rect outerBox;
@@ -530,7 +530,7 @@ public:
class BalloonManager_br : public BalloonManager {
Parallaction_br *_vm;
- byte _textColors[2];
+ byte _textColors[3];
struct Balloon {
Common::Rect box;