From c1511959d7dcf5182c259e5f98cdcfa85a900d6f Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Tue, 18 Jun 2019 19:45:44 +0530 Subject: HDB: Fix argument type in checkParameters --- engines/hdb/lua-script.cpp | 2 +- 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; -- cgit v1.2.3