mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 17:57:14 +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);
|
int stackTop = lua_gettop(_state);
|
||||||
if (stackTop < params) {
|
if (stackTop < params) {
|
||||||
warning("%s: Not Enough Parameters", func);
|
warning("%s: Not Enough Parameters", func);
|
||||||
|
@ -42,7 +42,7 @@ public:
|
|||||||
bool callFunction(const char *name, int returns);
|
bool callFunction(const char *name, int returns);
|
||||||
bool executeMPC(Common::SeekableReadStream *stream, const char *name, const char *scriptName, int32 length);
|
bool executeMPC(Common::SeekableReadStream *stream, const char *name, const char *scriptName, int32 length);
|
||||||
bool executeFile(const Common::String &filename);
|
bool executeFile(const Common::String &filename);
|
||||||
void checkParameters(char *func, int params);
|
void checkParameters(const char *func, int params);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
lua_State *_state;
|
lua_State *_state;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user