aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray2003-05-24 10:39:13 +0000
committerJonathan Gray2003-05-24 10:39:13 +0000
commit9b0e0d14dbcc1dde7b39ae19402ac7ba1d3da20a (patch)
tree26883a128df1c75fb18542d4935985773b8d9cc1
parentfa33a173ac6ddcb0ffe3123fb3c721138af183b9 (diff)
downloadscummvm-rg350-9b0e0d14dbcc1dde7b39ae19402ac7ba1d3da20a.tar.gz
scummvm-rg350-9b0e0d14dbcc1dde7b39ae19402ac7ba1d3da20a.tar.bz2
scummvm-rg350-9b0e0d14dbcc1dde7b39ae19402ac7ba1d3da20a.zip
we want a word not a byte for object numbers, bug pointed out by Hoenicke
svn-id: r7882
-rw-r--r--scumm/script_v2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/script_v2.cpp b/scumm/script_v2.cpp
index 8fc7a0e26f..b680ea6231 100644
--- a/scumm/script_v2.cpp
+++ b/scumm/script_v2.cpp
@@ -1036,7 +1036,7 @@ void Scumm_v2::o2_putActorAtObject() {
a = derefActor(getVarOrDirectByte(0x80), "o2_putActorAtObject");
- obj = getVarOrDirectByte(0x40);
+ obj = getVarOrDirectWord(0x40);
if (whereIsObject(obj) != WIO_NOT_FOUND)
getObjectXYPos(obj, x, y);
else {