aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/scumm/script_v2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/scumm/script_v2.cpp b/engines/scumm/script_v2.cpp
index b2793fbb5f..22c015c644 100644
--- a/engines/scumm/script_v2.cpp
+++ b/engines/scumm/script_v2.cpp
@@ -1565,7 +1565,7 @@ void ScummEngine_v2::o2_getActorWalkBox() {
Actor *a;
getResultPos();
a = derefActor(getVarOrDirectByte(PARAM_1), "o2_getActorWalkbox");
- setResult(a->_walkbox);
+ setResult(a->isInCurrentRoom() ? a->_walkbox: 0xFF);
}
void ScummEngine_v2::o2_dummy() {