diff options
author | Nipun Garg | 2019-06-27 07:31:17 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:02 +0200 |
commit | 459921b04612bf64c2b09e7eeb2d32e919833240 (patch) | |
tree | f35fceb2aa100d98fbfa286c3a48dc437454035c | |
parent | 0f313f3eda614b828574e62fbca66a1eb3b9fb71 (diff) | |
download | scummvm-rg350-459921b04612bf64c2b09e7eeb2d32e919833240.tar.gz scummvm-rg350-459921b04612bf64c2b09e7eeb2d32e919833240.tar.bz2 scummvm-rg350-459921b04612bf64c2b09e7eeb2d32e919833240.zip |
HDB: Remove error message stub
-rw-r--r-- | engines/hdb/lua-script.cpp | 7 |
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) { |