aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/script_v6.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/scumm/script_v6.cpp b/scumm/script_v6.cpp
index 0c50b13ec3..462c4429f7 100644
--- a/scumm/script_v6.cpp
+++ b/scumm/script_v6.cpp
@@ -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);