From 9b0e0d14dbcc1dde7b39ae19402ac7ba1d3da20a Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Sat, 24 May 2003 10:39:13 +0000 Subject: we want a word not a byte for object numbers, bug pointed out by Hoenicke svn-id: r7882 --- scumm/script_v2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.2.3