aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/kyra/lol.h1
-rw-r--r--engines/kyra/script_lol.cpp8
2 files changed, 8 insertions, 1 deletions
diff --git a/engines/kyra/lol.h b/engines/kyra/lol.h
index 4a00bb8d6c..dc90879718 100644
--- a/engines/kyra/lol.h
+++ b/engines/kyra/lol.h
@@ -797,6 +797,7 @@ private:
int olol_findInventoryItem(EMCState *script);
int olol_restoreFadePalette(EMCState *script);
int olol_getSelectedCharacter(EMCState *script);
+ int olol_setHandItem(EMCState *script);
int olol_drinkBezelCup(EMCState *script);
int olol_changeItemTypeOrFlag(EMCState *script);
int olol_placeInventoryItemInHand(EMCState *script);
diff --git a/engines/kyra/script_lol.cpp b/engines/kyra/script_lol.cpp
index e710a184cf..b6fcc6cf48 100644
--- a/engines/kyra/script_lol.cpp
+++ b/engines/kyra/script_lol.cpp
@@ -2018,6 +2018,12 @@ int LoLEngine::olol_getSelectedCharacter(EMCState *script) {
return _selectedCharacter;
}
+int LoLEngine::olol_setHandItem(EMCState *script) {
+ debugC(3, kDebugLevelScriptFuncs, "LoLEngine::olol_setHandItem(%p) (%d)", (const void *)script, stackPos(0));
+ setHandItem(stackPos(0));
+ return 1;
+}
+
int LoLEngine::olol_drinkBezelCup(EMCState *script) {
debugC(3, kDebugLevelScriptFuncs, "LoLEngine::olol_drinkBezelCup(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
drinkBezelCup(3 - stackPos(0), stackPos(1));
@@ -2887,7 +2893,7 @@ void LoLEngine::setupOpcodeTable() {
// 0xA8
Opcode(olol_getSelectedCharacter);
- OpcodeUnImpl();
+ Opcode(olol_setHandItem);
Opcode(olol_drinkBezelCup);
Opcode(olol_changeItemTypeOrFlag);