aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/actor.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/scumm/actor.cpp b/scumm/actor.cpp
index 51894b187b..5e6d6213a1 100644
--- a/scumm/actor.cpp
+++ b/scumm/actor.cpp
@@ -1458,8 +1458,7 @@ void Actor::walkActorOld() {
// Can't walk through locked boxes
int flags = _vm->getBoxFlags(next_box);
if (flags & kBoxLocked && !(flags & kBoxPlayerOnly && !isPlayer())) {
- moving |= MF_LAST_LEG;
- return;
+ break;
}