Fix heap corruption. Fix compiler warning.

svn-id: r4901
This commit is contained in:
Matt Hargett 2002-09-07 19:55:16 +00:00
parent 5b4f2cefef
commit 0069fb1072
3 changed files with 6 additions and 3 deletions

View file

@ -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]);