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:
minggo 2014-09-05 11:37:57 +08:00
commit 1bf6c79329
1 changed files with 2 additions and 2 deletions

View File

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