diff options
Diffstat (limited to 'engines/agos/items.cpp')
| -rw-r--r-- | engines/agos/items.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/agos/items.cpp b/engines/agos/items.cpp index f41ac43f2f..c5ac944290 100644 --- a/engines/agos/items.cpp +++ b/engines/agos/items.cpp @@ -1874,12 +1874,12 @@ void AGOSEngine::oe1_whatO() { void AGOSEngine::oe1_weigh() { // 59: weight Item *item = getNextItemPtr(); - writeVariable(getVarOrWord(), weighUp(item)); + writeNextVarContents(weighUp(item)); } void AGOSEngine::oe1_setFF() { // 60: set FF - writeNextVarContents(0xFF); + writeNextVarContents(255); } void AGOSEngine::oe1_moveDirn() { @@ -2005,7 +2005,6 @@ void AGOSEngine::oe1_doorExit() { int16 f = getVarOrWord(); int16 ct = 0; - c = (SubUserChain *)findChildOfType(d, 8); if (c) a = derefItem(c->chChained); |
