aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorMatt Hargett2002-09-07 19:55:16 +0000
committerMatt Hargett2002-09-07 19:55:16 +0000
commit0069fb107267705b186fbed098a62a78624855ae (patch)
tree016bbc79a549b04eb2299f655dc7baa21f2931ee /scumm
parent5b4f2cefef465a6d4915527b7f91e782816a1f2b (diff)
downloadscummvm-rg350-0069fb107267705b186fbed098a62a78624855ae.tar.gz
scummvm-rg350-0069fb107267705b186fbed098a62a78624855ae.tar.bz2
scummvm-rg350-0069fb107267705b186fbed098a62a78624855ae.zip
Fix heap corruption. Fix compiler warning.
svn-id: r4901
Diffstat (limited to 'scumm')
-rw-r--r--scumm/script_v2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/script_v2.cpp b/scumm/script_v2.cpp
index a717980013..9117bf62cb 100644
--- a/scumm/script_v2.cpp
+++ b/scumm/script_v2.cpp
@@ -2973,7 +2973,7 @@ void Scumm::o6_kernelFunction()
push(a->frame);
break;
case 215:
- if (_extraBoxFlags[args[1]] & 0x00FF == 0x00C0) {
+ if ((_extraBoxFlags[args[1]] & 0x00FF) == 0x00C0) {
push(_extraBoxFlags[args[1]]);
} else {
byte *temp = (byte *)getBoxBaseAddr(args[1]);