This commit is contained in:
natural-law 2010-11-23 13:41:10 +08:00
parent 22f7521cd3
commit ff4a9e42fd
1 changed files with 2 additions and 2 deletions

View File

@ -305,14 +305,14 @@ namespace cocos2d{
NSMutableArray<CCNode*>::NSMutableArrayIterator it;
for (it = m_pChildren->begin(); it != m_pChildren->end(); ++it)
{
assert(row < rows.size());
// if it has no value, break
if (! *it)
{
break;
}
assert(row < rows.size());
rowColumns = rows[row];
// can not have zero columns on a row
assert(rowColumns);