diff options
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; |