mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 22:58:09 +00:00
HDB: Fix argument type in checkParameters
This commit is contained in:
parent
c4ac26f341
commit
c1511959d7
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user