aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/lua-script.cpp
diff options
context:
space:
mode:
authorNipun Garg2019-06-27 07:31:17 +0530
committerEugene Sandulenko2019-09-03 17:17:02 +0200
commit459921b04612bf64c2b09e7eeb2d32e919833240 (patch)
treef35fceb2aa100d98fbfa286c3a48dc437454035c /engines/hdb/lua-script.cpp
parent0f313f3eda614b828574e62fbca66a1eb3b9fb71 (diff)
downloadscummvm-rg350-459921b04612bf64c2b09e7eeb2d32e919833240.tar.gz
scummvm-rg350-459921b04612bf64c2b09e7eeb2d32e919833240.tar.bz2
scummvm-rg350-459921b04612bf64c2b09e7eeb2d32e919833240.zip
HDB: Remove error message stub
Diffstat (limited to 'engines/hdb/lua-script.cpp')
-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 188ab2b308..3eb2fe5016 100644
--- a/engines/hdb/lua-script.cpp
+++ b/engines/hdb/lua-script.cpp
@@ -952,11 +952,16 @@ void LuaScript::pushString(char *string) {
}
void LuaScript::pushFunction(char *func) {
+ int type;
+
if (!_systemInit)
return;
lua_getglobal(_state, func);
- warning("STUB: pushFunction: Open Dialog if Cheating_On");
+ type = lua_type(_state, 1);
+ if (type != LUA_TFUNCTION && type != LUA_TNUMBER) {
+ warning("pushFunction: Function '%s' doesn't exists", func);
+ }
}
void LuaScript::call(int args, int returns) {