diff options
author | Nipun Garg | 2019-06-18 19:45:44 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:48 +0200 |
commit | c1511959d7dcf5182c259e5f98cdcfa85a900d6f (patch) | |
tree | 1ec9e747403c062270e5814b00699e008fdee2fd /engines/hdb | |
parent | c4ac26f341f86cd6e44306b4883025ea83b712e1 (diff) | |
download | scummvm-rg350-c1511959d7dcf5182c259e5f98cdcfa85a900d6f.tar.gz scummvm-rg350-c1511959d7dcf5182c259e5f98cdcfa85a900d6f.tar.bz2 scummvm-rg350-c1511959d7dcf5182c259e5f98cdcfa85a900d6f.zip |
HDB: Fix argument type in checkParameters
Diffstat (limited to 'engines/hdb')
-rw-r--r-- | engines/hdb/lua-script.cpp | 2 | ||||
-rw-r--r-- | engines/hdb/lua-script.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/hdb/lua-script.cpp b/engines/hdb/lua-script.cpp index 3e1045905e..90aadd8aa9 100644 --- a/engines/hdb/lua-script.cpp +++ b/engines/hdb/lua-script.cpp @@ -909,7 +909,7 @@ void LuaScript::addPatches(Common::String &chunk, const char* scriptName) { } } -void LuaScript::checkParameters(char *func, int params) { +void LuaScript::checkParameters(const char *func, int params) { int stackTop = lua_gettop(_state); if (stackTop < params) { warning("%s: Not Enough Parameters", func); diff --git a/engines/hdb/lua-script.h b/engines/hdb/lua-script.h index 81d9980713..37b8df9d73 100644 --- a/engines/hdb/lua-script.h +++ b/engines/hdb/lua-script.h @@ -42,7 +42,7 @@ public: bool callFunction(const char *name, int returns); bool executeMPC(Common::SeekableReadStream *stream, const char *name, const char *scriptName, int32 length); bool executeFile(const Common::String &filename); - void checkParameters(char *func, int params); + void checkParameters(const char *func, int params); private: lua_State *_state; |