From 49b57569c9d25a6fd8d57e7ca81a07c07f4b5f03 Mon Sep 17 00:00:00 2001 From: dumganhar Date: Sat, 28 Jan 2012 14:38:44 +0800 Subject: [PATCH] fixed #756: CCMenu can't be initialized by using CCMenu::node() method. --- cocos2dx/menu_nodes/CCMenu.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cocos2dx/menu_nodes/CCMenu.cpp b/cocos2dx/menu_nodes/CCMenu.cpp index 4346da91b4..fcce842df7 100644 --- a/cocos2dx/menu_nodes/CCMenu.cpp +++ b/cocos2dx/menu_nodes/CCMenu.cpp @@ -80,8 +80,7 @@ namespace cocos2d{ bool CCMenu::init() { - va_list args; - return initWithItems(NULL, args); + return initWithItems(NULL, NULL); } bool CCMenu::initWithItems(CCMenuItem* item, va_list args)