Fix for bug #787841 ("SAM: Crash when using retriever on Max"). For

whatever reason, o6_walkActorToObj() was trying to find the coordinates for
an object that was marked as being in the inventory.

svn-id: r9664
This commit is contained in:
Torbjörn Andersson 2003-08-13 16:38:02 +00:00
parent 5dd554c47a
commit 2973317f1d

View file

@ -998,8 +998,11 @@ void Scumm_v6::o6_walkActorToObj() {
a = derefActor(act, "o6_walkActorToObj");
if (obj >= _numActors) {
if (whereIsObject(obj) == WIO_NOT_FOUND)
int wio = whereIsObject(obj);
if (wio != WIO_FLOBJECT && wio != WIO_ROOM)
return;
int dir;
getObjectXYPos(obj, x, y, dir);
a->startWalkActor(x, y, dir);