mirror of https://github.com/axmolengine/axmol.git
Merge pull request #7953 from samuele3hu/v3_check_newnon
Fix the error that number of params was judged wrong for lua bindings of EventListenerMouse::create
This commit is contained in:
commit
1bf6c79329
|
@ -5163,7 +5163,7 @@ static int tolua_cocos2dx_EventListenerMouse_create(lua_State* tolua_S)
|
|||
|
||||
argc = lua_gettop(tolua_S) - 1;
|
||||
|
||||
if (argc == 1)
|
||||
if (argc == 0)
|
||||
{
|
||||
cocos2d::EventListenerMouse* tolua_ret = cocos2d::EventListenerMouse::create();
|
||||
if(nullptr == tolua_ret)
|
||||
|
@ -5176,7 +5176,7 @@ static int tolua_cocos2dx_EventListenerMouse_create(lua_State* tolua_S)
|
|||
return 1;
|
||||
}
|
||||
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d\n", "cc.EventListenerMouse:create",argc, 1);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d\n", "cc.EventListenerMouse:create",argc, 0);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
|
Loading…
Reference in New Issue