diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2015-02-23 16:09:35 +0100 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2015-02-23 16:09:35 +0100 |
commit | 9e1db16ba497fd527b95fc00c69229de3957876d (patch) | |
tree | 707590270b5bb183e977c3363f7f2e5c6bccc87b /src/Bindings | |
parent | Added forgotten indent (diff) | |
download | cuberite-9e1db16ba497fd527b95fc00c69229de3957876d.tar cuberite-9e1db16ba497fd527b95fc00c69229de3957876d.tar.gz cuberite-9e1db16ba497fd527b95fc00c69229de3957876d.tar.bz2 cuberite-9e1db16ba497fd527b95fc00c69229de3957876d.tar.lz cuberite-9e1db16ba497fd527b95fc00c69229de3957876d.tar.xz cuberite-9e1db16ba497fd527b95fc00c69229de3957876d.tar.zst cuberite-9e1db16ba497fd527b95fc00c69229de3957876d.zip |
Diffstat (limited to 'src/Bindings')
-rw-r--r-- | src/Bindings/ManualBindings.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Bindings/ManualBindings.cpp b/src/Bindings/ManualBindings.cpp index 2e9d49ef0..a6ae4869b 100644 --- a/src/Bindings/ManualBindings.cpp +++ b/src/Bindings/ManualBindings.cpp @@ -115,9 +115,9 @@ static int tolua_CompressStringZLIB(lua_State * tolua_S) { cLuaState S(tolua_S); if ( - !S.CheckParamString(1) && + !S.CheckParamString(1) || ( - !S.CheckParamNumber(2) || + !S.CheckParamNumber(2) && !S.CheckParamEnd(2) ) ) @@ -146,7 +146,7 @@ static int tolua_UncompressStringZLIB(lua_State * tolua_S) { cLuaState S(tolua_S); if ( - !S.CheckParamString(1) && + !S.CheckParamString(1) || !S.CheckParamNumber(2) ) { @@ -174,7 +174,7 @@ static int tolua_CompressStringGZIP(lua_State * tolua_S) { cLuaState S(tolua_S); if ( - !S.CheckParamString(1) && + !S.CheckParamString(1) || !S.CheckParamEnd(2) ) { @@ -201,7 +201,7 @@ static int tolua_UncompressStringGZIP(lua_State * tolua_S) { cLuaState S(tolua_S); if ( - !S.CheckParamString(1) && + !S.CheckParamString(1) || !S.CheckParamEnd(2) ) { @@ -228,7 +228,7 @@ static int tolua_InflateString(lua_State * tolua_S) { cLuaState S(tolua_S); if ( - !S.CheckParamString(1) && + !S.CheckParamString(1) || !S.CheckParamEnd(2) ) { |