diff options
author | James Brown | 2003-01-27 07:07:55 +0000 |
---|---|---|
committer | James Brown | 2003-01-27 07:07:55 +0000 |
commit | f9a4b231daf8e6815ab943c5685c6f5dc0311cf4 (patch) | |
tree | 4a37c306d0ffb11788d35960157002d975f508b2 | |
parent | 7a4f4636ee0a4e8c57ece660d93464df5d055db0 (diff) | |
download | scummvm-rg350-f9a4b231daf8e6815ab943c5685c6f5dc0311cf4.tar.gz scummvm-rg350-f9a4b231daf8e6815ab943c5685c6f5dc0311cf4.tar.bz2 scummvm-rg350-f9a4b231daf8e6815ab943c5685c6f5dc0311cf4.zip |
fix drawObject
svn-id: r6561
-rw-r--r-- | scumm/script_v8.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/script_v8.cpp b/scumm/script_v8.cpp index 7185ded37a..51d3d8f141 100644 --- a/scumm/script_v8.cpp +++ b/scumm/script_v8.cpp @@ -1734,7 +1734,7 @@ void Scumm_v8::o8_getStringWidth() void Scumm_v8::o8_drawObject() { - int state = pop(), y = pop(), x = pop(), objnum = getObjectIndex(pop()); + int state = pop(), y = pop(), x = pop(), obj = pop(), objnum = getObjectIndex(obj); ObjectData *od; if (!objnum) @@ -1754,5 +1754,5 @@ void Scumm_v8::o8_drawObject() else warning("o8_drawObject(%d, %d, %d, %d)", x, y, objnum, state); - putState(objnum, state); + putState(obj, state); } |