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:
parent
04887cd81a
commit
787173351d
@ -478,8 +478,7 @@ static int tolua_cWorld_QueueTask(lua_State * tolua_S)
|
||||
cLuaState L(tolua_S);
|
||||
if (
|
||||
!L.CheckParamUserType(1, "cWorld") ||
|
||||
!L.CheckParamNumber (2) ||
|
||||
!L.CheckParamFunction(3)
|
||||
!L.CheckParamFunction(2)
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user