mirror of https://github.com/axmolengine/axmol.git
Merge branch 'master' of https://github.com/cocos2d/cocos2d-x
This commit is contained in:
commit
26da27aaca
|
@ -55,15 +55,19 @@ public:
|
|||
unsigned int count(void)
|
||||
{
|
||||
unsigned int uCount = 0;
|
||||
CCMutableArrayIterator it;
|
||||
for (it = m_array.begin(); it != m_array.end(); ++it)
|
||||
|
||||
if (!m_array.empty())
|
||||
{
|
||||
if (*it == NULL)
|
||||
CCMutableArrayIterator it;
|
||||
for (it = m_array.begin(); it != m_array.end(); ++it)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (*it == NULL)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
++uCount;
|
||||
++uCount;
|
||||
}
|
||||
}
|
||||
|
||||
return uCount;
|
||||
|
|
Loading…
Reference in New Issue