1
0

Fix cWorld:QueueTask() Lua's binding

Manual binding expect three parameters : self, a number, a function
And then read self and a function...
Removing the extra check for the broken second argument
This commit is contained in:
ElNounch 2016-08-17 23:27:26 +00:00
parent 04887cd81a
commit 787173351d

View File

@ -478,8 +478,7 @@ static int tolua_cWorld_QueueTask(lua_State * tolua_S)
cLuaState L(tolua_S); cLuaState L(tolua_S);
if ( if (
!L.CheckParamUserType(1, "cWorld") || !L.CheckParamUserType(1, "cWorld") ||
!L.CheckParamNumber (2) || !L.CheckParamFunction(2)
!L.CheckParamFunction(3)
) )
{ {
return 0; return 0;