issue #18, debug

This commit is contained in:
Walzer 2010-08-28 07:24:33 +00:00
parent b1c7636632
commit 35b33ba82b
1 changed files with 1 additions and 3 deletions

View File

@ -285,8 +285,7 @@ namespace cocos2d{
void CCMenu::alignItemsInColumns(unsigned int columns, va_list args)
{
vector<unsigned int> rows;
columns = va_arg(args, unsigned int);
vector<unsigned int> rows;
while (columns)
{
rows.push_back(columns);
@ -395,7 +394,6 @@ namespace cocos2d{
void CCMenu::alignItemsInRows(unsigned int rows, va_list args)
{
vector<unsigned int> columns;
rows = va_arg(args, unsigned int);
while (rows)
{
columns.push_back(rows);