aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/hdb/lua-script.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/hdb/lua-script.cpp b/engines/hdb/lua-script.cpp
index b0adc96558..f9d0aa7039 100644
--- a/engines/hdb/lua-script.cpp
+++ b/engines/hdb/lua-script.cpp
@@ -838,7 +838,12 @@ static int removeInvItem(lua_State *L) {
}
static int killTrigger(lua_State *L) {
- warning("STUB: KILL TRIGGER");
+ char *id = (char *)lua_tostring(L, 1);
+
+ g_hdb->_lua->checkParameters("killTrigger", 1);
+
+ lua_pop(L, 1);
+ g_hdb->_ai->killTrigger(id);
return 0;
}