diff options
author | Mattes D <github@xoft.cz> | 2015-05-31 19:44:08 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-05-31 19:44:08 +0200 |
commit | 98df75d5ab0bd1af93ed980993698b358037dd15 (patch) | |
tree | 10ed125c3d75d1f4a72b501441b1c0c2febc17e7 /src/Bindings | |
parent | Merge pull request #2173 from mc-server/CleanCmake (diff) | |
download | cuberite-98df75d5ab0bd1af93ed980993698b358037dd15.tar cuberite-98df75d5ab0bd1af93ed980993698b358037dd15.tar.gz cuberite-98df75d5ab0bd1af93ed980993698b358037dd15.tar.bz2 cuberite-98df75d5ab0bd1af93ed980993698b358037dd15.tar.lz cuberite-98df75d5ab0bd1af93ed980993698b358037dd15.tar.xz cuberite-98df75d5ab0bd1af93ed980993698b358037dd15.tar.zst cuberite-98df75d5ab0bd1af93ed980993698b358037dd15.zip |
Diffstat (limited to 'src/Bindings')
-rw-r--r-- | src/Bindings/ManualBindings.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/Bindings/ManualBindings.h b/src/Bindings/ManualBindings.h index 83b960058..f8c9b96de 100644 --- a/src/Bindings/ManualBindings.h +++ b/src/Bindings/ManualBindings.h @@ -253,8 +253,9 @@ public: // Check params: cLuaState L(tolua_S); if ( - !L.CheckParamNumber(2, 5) || - !L.CheckParamFunction(6) + !L.CheckParamNumber(2, 4) || + !L.CheckParamFunction(5) || + !L.CheckParamEnd(6) ) { return 0; @@ -316,8 +317,9 @@ public: // Check params: cLuaState L(tolua_S); if ( - !L.CheckParamNumber(2, 4) || - !L.CheckParamFunction(5) + !L.CheckParamNumber(2, 3) || + !L.CheckParamFunction(4) || + !L.CheckParamEnd(5) ) { return 0; |