HDB: Fix argument type in checkParameters

This commit is contained in:
Nipun Garg 2019-06-18 19:45:44 +05:30 committed by Eugene Sandulenko
parent c4ac26f341
commit c1511959d7
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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;