1
0

ManualBindings: Fixed DoWithXYZ and ForEachInChunk signatures.

Fixes forum report http://forum.mc-server.org/showthread.php?tid=1993
This commit is contained in:
Mattes D 2015-05-31 19:44:08 +02:00
parent ddb173b289
commit 98df75d5ab

View File

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