another change for Dig - still crashes a lot with my save games, though :-/

svn-id: r6475
This commit is contained in:
Max Horn 2003-01-16 01:49:33 +00:00
parent bf6e37cba8
commit b9811d9594

View File

@ -1327,7 +1327,10 @@ void Scumm_v6::o6_isActorInBox()
{
int box = pop();
Actor *a = derefActorSafe(pop(), "o6_isActorInBox");
push(checkXYInBoxBounds(box, a->x, a->y));
if(!a)
push(0); // FIXME: DIG seems to call this with an invalid actor id
else
push(checkXYInBoxBounds(box, a->x, a->y));
}
void Scumm_v6::o6_getActorLayer()