fixed #756: CCMenu can't be initialized by using CCMenu::node() method.

This commit is contained in:
dumganhar 2012-01-28 14:38:44 +08:00
parent 94342f85e0
commit 49b57569c9
1 changed files with 1 additions and 2 deletions

View File

@ -80,8 +80,7 @@ namespace cocos2d{
bool CCMenu::init() bool CCMenu::init()
{ {
va_list args; return initWithItems(NULL, NULL);
return initWithItems(NULL, args);
} }
bool CCMenu::initWithItems(CCMenuItem* item, va_list args) bool CCMenu::initWithItems(CCMenuItem* item, va_list args)